Free Accessible CSS Gradient Generator

← All Colors
#F5FFFA Mint Cream

Mint Cream Hex Code #F5FFFA

Mint Cream is a very light off-white with the hex code #F5FFFA. In RGB it is 245, 255, 250, and in HSL it is 150°, 100%, 98%. It is one of the 148 named colors in CSS, so you can write “mintcream” instead of the hex code.

HEX
#F5FFFA
RGB
rgb(245, 255, 250)
HSL
hsl(150, 100%, 98%)
HSV
hsv(150°, 4%, 100%)
CMYK
cmyk(4%, 0%, 2%, 0%)
CSS name
mintcream

CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.

About Mint Cream

On a white background Mint Cream has a contrast ratio of 1.02:1 (Fail), and on black 20.57:1 (AAA). Black text is the better choice on top of it.

It has almost no hue of its own, so it pairs comfortably with almost any accent color.

Near-white colors work well as backgrounds and surfaces. Their slight tint feels softer than pure white, which can look harsh across a large screen.

Shades and tints of Mint Cream

Tints mix Mint Cream with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.

Pairing Mint Cream with an accent color

Mint Cream has almost no hue of its own, so color schemes built from it would all look the same. A neutral works best as a background or text color beside an accent. This is how six accent colors contrast with Mint Cream.

Mint Cream contrast and accessibility

WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Mint Cream scores against white and black.

Contrast of Mint Cream with white and black
AgainstRatioAA normalAA largeAAA normalAAA large
White (#ffffff) 1.02:1 ✕ Fail ✕ Fail ✕ Fail ✕ Fail
Black (#000000) 20.57:1 ✓ Pass ✓ Pass ✓ Pass ✓ Pass
Aa White text on Mint Cream1.02:1
Aa Black text on Mint Cream20.57:1

Mint Cream and color blindness

These are approximate previews of how Mint Cream can look with the main types of color vision deficiency.

Protanopia #FFFDFA

Mint Cream looks almost the same.

Deuteranopia #FDFCFA

Mint Cream looks almost the same.

Tritanopia #F3FFFD

Mint Cream looks almost the same.

Achromatopsia #FDFDFD

Mint Cream looks almost the same.

Gradients with Mint Cream

Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.

Mint Cream to a lighter tint

background: linear-gradient(135deg, #f5fffa 0%, #fbfffd 100%);

Mint Cream to a darker shade

background: linear-gradient(135deg, #f5fffa 0%, #626664 100%);

Mint Cream to Dark Orchid

background: linear-gradient(135deg, #f5fffa 0%, #9932cc 100%);

Colors similar to Mint Cream

How each close match differs from Mint Cream.

More white & cream colors →

Use Mint Cream in code

CSS
.element {
  color: #f5fffa;
  background-color: #f5fffa;
  border-color: mintcream;   /* mintcream is a valid CSS color name */
}
CSS variable
:root {
  --color-mint-cream: #f5fffa;
}
Tailwind
<!-- Tailwind arbitrary values -->
<div class="bg-[#f5fffa] text-[#f5fffa] border-[#f5fffa]"></div>

/* Tailwind v4 theme color */
@theme {
  --color-mint-cream: #f5fffa;
}

Mint Cream questions

What is the hex code for Mint Cream?

The hex code for Mint Cream is #F5FFFA. In RGB that is rgb(245, 255, 250), and in HSL it is hsl(150, 100%, 98%).

Which colors go well with Mint Cream?

Mint Cream is a neutral color with almost no hue of its own, so it has no true complement and pairs with nearly any accent. The accents that contrast most strongly against it are Dark Orchid (5.58:1), Crimson (4.89:1), Royal Blue (4.75:1).

Should I use white or black text on Mint Cream?

Black text. It has a contrast ratio of 20.57:1 against Mint Cream, which is WCAG AAA. The other option scores 1.02:1.

Is Mint Cream accessible as a text color on white?

No. Mint Cream on white scores 1.02:1, which is below the WCAG minimum of 3:1 even for large text.

What are darker and lighter shades of Mint Cream?

Mixing Mint Cream with black gives #C4CCC8, #939996, #626664, #313332 (20% to 80% black). Mixing it with white gives #F7FFFB, #F9FFFC, #FBFFFD, #FDFFFE (20% to 80% white).

More color tools