#F2DF78#F2DF78

#F2DF78 is a very light, vivid yellow. Relative luminance 0.730; OKLCH L 89.8% C 0.126 H 99.1°. Best body text is #000000 at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#F2DF78
RGBrgb(242, 223, 120)
HSLhsl(51, 82%, 71%)
HSVhsv(51, 50%, 95%)
CMYKcmyk(0%, 7.9%, 50.4%, 5.1%)
CIE-LABlab(88.45, -6.58, 52.36)
CIE-LCHlch(88.45, 52.78, 97.16°)
OKLaboklab(89.82% -0.0198 0.1242)
OKLCHoklch(89.82% 0.126 99.1)
XYZxyz(66.3979, 73.0111, 28.3607)
Luminance0.7301 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DF78 #788BF2
analogous
#F2A278 #F2DF78 #C8F278
triadic
#F2DF78 #78F2DF #DF78F2
tetradic
#F2DF78 #78F2A2 #788BF2 #F278C8
square
#F2DF78 #78F2A2 #788BF2 #F278C8
split-complementary
#F2DF78 #78C8F2 #A278F2
monochromatic
#DBBC15 #EDD240 #F2DF78 #F7ECB0 #FCF8E3

Accessibility & contrast

On white

1.35
#F2DF78 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.60
#F2DF78 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DF78
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DF78#FFFFFF#000000##000000
##F2DF781.001.3515.6015.60
#FFFFFF1.351.0021.0021.00
#00000015.6021.001.001.00
##00000015.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0DA6F
Deuteranopia (green-blind)
#F6E17C
Tritanopia (blue-blind)
#FFD2C7
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #f2df78;
/* rgb */ color: rgb(242, 223, 120);
/* oklch */ color: oklch(89.8% 0.126 99.1);
Tailwind
colors: {
  custom: {
    50: '#f9e8a1',
    500: '#f2df78',
    950: '#000000',
  },
}
SCSS
$custom: #f2df78;
$custom-light: #f9e8a1;
$custom-dark: #000000;
JSON
{
  "hex": "#f2df78",
  "rgb": {
    "r": 242,
    "g": 223,
    "b": 120
  },
  "hsl": {
    "h": 50.656,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.89821,
    "c": 0.12573,
    "h": 99.1
  },
  "luminance": 0.73009
}

Semantic roles & 50–950 ramp

primary
#F2DF78
secondary
#4257CC
accent
#28DF07
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F2DF78

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

Preview Lab → · Contrast checker → · Palette generator →

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