#F2DB78#F2DB78

#F2DB78 is a very light, vivid yellow. Relative luminance 0.709; OKLCH L 89.0% C 0.122 H 96.6°. Best body text is #000000 at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#F2DB78
RGBrgb(242, 219, 120)
HSLhsl(49, 82%, 71%)
HSVhsv(49, 50%, 95%)
CMYKcmyk(0%, 9.5%, 50.4%, 5.1%)
CIE-LABlab(87.44, -4.56, 51.14)
CIE-LCHlch(87.44, 51.34, 95.09°)
OKLaboklab(89.02% -0.014 0.1215)
OKLCHoklch(89.02% 0.122 96.6)
XYZxyz(65.3418, 70.8990, 28.0087)
Luminance0.7090 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DB78 #788FF2
analogous
#F29E78 #F2DB78 #CCF278
triadic
#F2DB78 #78F2DB #DB78F2
tetradic
#F2DB78 #78F29E #788FF2 #F278CC
square
#F2DB78 #78F29E #788FF2 #F278CC
split-complementary
#F2DB78 #78CCF2 #9E78F2
monochromatic
#DBB515 #EDCC40 #F2DB78 #F7EAB0 #FCF8E3

Accessibility & contrast

On white

1.38
#F2DB78 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.18
#F2DB78 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DB78
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DB78#FFFFFF#000000##000000
##F2DB781.001.3815.1815.18
#FFFFFF1.381.0021.0021.00
#00000015.1821.001.001.00
##00000015.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD76F
Deuteranopia (green-blind)
#F3DE7C
Tritanopia (blue-blind)
#FFCEC4
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f2db78;
/* rgb */ color: rgb(242, 219, 120);
/* oklch */ color: oklch(89.0% 0.122 96.6);
Tailwind
colors: {
  custom: {
    50: '#f9e5a1',
    500: '#f2db78',
    950: '#000000',
  },
}
SCSS
$custom: #f2db78;
$custom-light: #f9e5a1;
$custom-dark: #000000;
JSON
{
  "hex": "#f2db78",
  "rgb": {
    "r": 242,
    "g": 219,
    "b": 120
  },
  "hsl": {
    "h": 48.689,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.89015,
    "c": 0.12228,
    "h": 96.6
  },
  "luminance": 0.70896
}

Semantic roles & 50–950 ramp

primary
#F2DB78
secondary
#425CCC
accent
#2FDF07
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150F
muted
#868480

Preview Lab

Preview with #F2DB78

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

Preview Lab → · Contrast checker → · Palette generator →

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