#F2CC51#F2CC51

#F2CC51 is a very light, vivid yellow. Relative luminance 0.627; OKLCH L 85.6% C 0.145 H 91.7°. Best body text is #000000 at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#F2CC51
RGBrgb(242, 204, 81)
HSLhsl(46, 86%, 63%)
HSVhsv(46, 67%, 95%)
CMYKcmyk(0%, 15.7%, 66.5%, 5.1%)
CIE-LABlab(83.26, 0.34, 64.02)
CIE-LCHlch(83.26, 64.02, 89.70°)
OKLaboklab(85.59% -0.0043 0.1445)
OKLCHoklch(85.59% 0.145 91.7)
XYZxyz(59.6991, 62.6604, 16.7332)
Luminance0.6266 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2CC51 #5177F2
analogous
#F27C51 #F2CC51 #C7F251
triadic
#F2CC51 #51F2CC #CC51F2
tetradic
#F2CC51 #51F27C #5177F2 #F251C7
square
#F2CC51 #51F27C #5177F2 #F251C7
split-complementary
#F2CC51 #51C7F2 #7C51F2
monochromatic
#BB920E #EEBB18 #F2CC51 #F6DD8A #FBEDC3

Accessibility & contrast

On white

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

On black

13.53
#F2CC51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2CC51
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2CC51#FFFFFF#000000##000000
##F2CC511.001.5513.5313.53
#FFFFFF1.551.0021.0021.00
#00000013.5321.001.001.00
##00000013.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C942
Deuteranopia (green-blind)
#EBD457
Tritanopia (blue-blind)
#FFBCB2
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #f2cc51;
/* rgb */ color: rgb(242, 204, 81);
/* oklch */ color: oklch(85.6% 0.145 91.7);
Tailwind
colors: {
  custom: {
    50: '#fadb87',
    500: '#f2cc51',
    950: '#000000',
  },
}
SCSS
$custom: #f2cc51;
$custom-light: #fadb87;
$custom-dark: #000000;
JSON
{
  "hex": "#f2cc51",
  "rgb": {
    "r": 242,
    "g": 204,
    "b": 81
  },
  "hsl": {
    "h": 45.839,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.85594,
    "c": 0.14458,
    "h": 91.7
  },
  "luminance": 0.62657
}

Semantic roles & 50–950 ramp

primary
#F2CC51
secondary
#2E4FB9
accent
#38E303
background
#FFFEFC
surface
#FFFBF4
border
#D7D4CE
text
#18140C
muted
#86837F

Preview Lab

Preview with #F2CC51

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

Preview Lab → · Contrast checker → · Palette generator →

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