#F2E078#F2E078

#F2E078 is a very light, vivid yellow. Relative luminance 0.735; OKLCH L 90.0% C 0.127 H 99.7°. Best body text is #000000 at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#F2E078
RGBrgb(242, 224, 120)
HSLhsl(51, 82%, 71%)
HSVhsv(51, 50%, 95%)
CMYKcmyk(0%, 7.4%, 50.4%, 5.1%)
CIE-LABlab(88.71, -7.08, 52.67)
CIE-LCHlch(88.71, 53.14, 97.66°)
OKLaboklab(90.02% -0.0213 0.1248)
OKLCHoklch(90.02% 0.127 99.7)
XYZxyz(66.6658, 73.5471, 28.4500)
Luminance0.7355 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E078 #788AF2
analogous
#F2A378 #F2E078 #C7F278
triadic
#F2E078 #78F2E0 #E078F2
tetradic
#F2E078 #78F2A3 #788AF2 #F278C7
square
#F2E078 #78F2A3 #788AF2 #F278C7
split-complementary
#F2E078 #78C7F2 #A378F2
monochromatic
#DBBD15 #EDD340 #F2E078 #F7EDB0 #FCF9E3

Accessibility & contrast

On white

1.34
#F2E078 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.71
#F2E078 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E078
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E078#FFFFFF#000000##000000
##F2E0781.001.3415.7115.71
#FFFFFF1.341.0021.0021.00
#00000015.7121.001.001.00
##00000015.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1DB6F
Deuteranopia (green-blind)
#F6E27D
Tritanopia (blue-blind)
#FFD3C8
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f2e078;
/* rgb */ color: rgb(242, 224, 120);
/* oklch */ color: oklch(90.0% 0.127 99.7);
Tailwind
colors: {
  custom: {
    50: '#f9e9a1',
    500: '#f2e078',
    950: '#000000',
  },
}
SCSS
$custom: #f2e078;
$custom-light: #f9e9a1;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e078",
  "rgb": {
    "r": 242,
    "g": 224,
    "b": 120
  },
  "hsl": {
    "h": 51.148,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.90023,
    "c": 0.12663,
    "h": 99.7
  },
  "luminance": 0.73545
}

Semantic roles & 50–950 ramp

primary
#F2E078
secondary
#4256CC
accent
#27DF07
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F2E078

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

Preview Lab → · Contrast checker → · Palette generator →

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