#F2CC57#F2CC57

#F2CC57 is a very light, vivid yellow. Relative luminance 0.628; OKLCH L 85.6% C 0.140 H 91.1°. Best body text is #000000 at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#F2CC57
RGBrgb(242, 204, 87)
HSLhsl(45, 86%, 65%)
HSVhsv(45, 64%, 95%)
CMYKcmyk(0%, 15.7%, 64%, 5.1%)
CIE-LABlab(83.31, 0.69, 61.52)
CIE-LCHlch(83.31, 61.53, 89.36°)
OKLaboklab(85.65% -0.0026 0.1401)
OKLCHoklch(85.65% 0.14 91.1)
XYZxyz(59.9341, 62.7544, 17.9709)
Luminance0.6275 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2CC57 #577DF2
analogous
#F27F57 #F2CC57 #CBF257
triadic
#F2CC57 #57F2CC #CC57F2
tetradic
#F2CC57 #57F27F #577DF2 #F257CB
square
#F2CC57 #57F27F #577DF2 #F257CB
split-complementary
#F2CC57 #57CBF2 #7F57F2
monochromatic
#C0940F #EEBB1E #F2CC57 #F6DD90 #FBEEC9

Accessibility & contrast

On white

1.55
#F2CC57 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.55
#F2CC57 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2CC57
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2CC57#FFFFFF#000000##000000
##F2CC571.001.5513.5513.55
#FFFFFF1.551.0021.0021.00
#00000013.5521.001.001.00
##00000013.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C94A
Deuteranopia (green-blind)
#EAD45C
Tritanopia (blue-blind)
#FFBDB3
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #f2cc57;
/* rgb */ color: rgb(242, 204, 87);
/* oklch */ color: oklch(85.6% 0.140 91.1);
Tailwind
colors: {
  custom: {
    50: '#fadb8b',
    500: '#f2cc57',
    950: '#000000',
  },
}
SCSS
$custom: #f2cc57;
$custom-light: #fadb8b;
$custom-dark: #000000;
JSON
{
  "hex": "#f2cc57",
  "rgb": {
    "r": 242,
    "g": 204,
    "b": 87
  },
  "hsl": {
    "h": 45.29,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.85649,
    "c": 0.14016,
    "h": 91.1
  },
  "luminance": 0.62751
}

Semantic roles & 50–950 ramp

primary
#F2CC57
secondary
#3052BE
accent
#3AE203
background
#FFFEFC
surface
#FFFBF4
border
#D7D4CE
text
#18140C
muted
#86837F

Preview Lab

Preview with #F2CC57

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#F2CC57 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva