#F2CC4F#F2CC4F

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

Color values

HEX#F2CC4F
RGBrgb(242, 204, 79)
HSLhsl(46, 86%, 63%)
HSVhsv(46, 67%, 95%)
CMYKcmyk(0%, 15.7%, 67.4%, 5.1%)
CIE-LABlab(83.25, 0.23, 64.83)
CIE-LCHlch(83.25, 64.83, 89.80°)
OKLaboklab(85.58% -0.0049 0.1459)
OKLCHoklch(85.58% 0.146 91.9)
XYZxyz(59.6252, 62.6309, 16.3440)
Luminance0.6263 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2CC4F #4F75F2
analogous
#F27A4F #F2CC4F #C7F24F
triadic
#F2CC4F #4FF2CC #CC4FF2
tetradic
#F2CC4F #4FF27A #4F75F2 #F24FC7
square
#F2CC4F #4FF27A #4F75F2 #F24FC7
split-complementary
#F2CC4F #4FC7F2 #7A4FF2
monochromatic
#B9910E #EEBB16 #F2CC4F #F6DD88 #FAEDC1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2CC4F#FFFFFF#000000##000000
##F2CC4F1.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)
#E1C93F
Deuteranopia (green-blind)
#EBD455
Tritanopia (blue-blind)
#FFBCB2
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #f2cc4f;
/* rgb */ color: rgb(242, 204, 79);
/* oklch */ color: oklch(85.6% 0.146 91.9);
Tailwind
colors: {
  custom: {
    50: '#fadb86',
    500: '#f2cc4f',
    950: '#000000',
  },
}
SCSS
$custom: #f2cc4f;
$custom-light: #fadb86;
$custom-dark: #000000;
JSON
{
  "hex": "#f2cc4f",
  "rgb": {
    "r": 242,
    "g": 204,
    "b": 79
  },
  "hsl": {
    "h": 46.012,
    "s": 86.243,
    "l": 62.941
  },
  "oklch": {
    "l": 0.85577,
    "c": 0.14599,
    "h": 91.9
  },
  "luminance": 0.62627
}

Semantic roles & 50–950 ramp

primary
#F2CC4F
secondary
#2D4EB8
accent
#37E303
background
#FFFEFC
surface
#FFFBF3
border
#D7D4CD
text
#18140C
muted
#86837F

Preview Lab

Preview with #F2CC4F

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

Preview Lab → · Contrast checker → · Palette generator →

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