#F2E178#F2E178

#F2E178 is a very light, vivid yellow. Relative luminance 0.741; OKLCH L 90.2% C 0.128 H 100.3°. Best body text is #000000 at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#F2E178
RGBrgb(242, 225, 120)
HSLhsl(52, 82%, 71%)
HSVhsv(52, 50%, 95%)
CMYKcmyk(0%, 7%, 50.4%, 5.1%)
CIE-LABlab(88.96, -7.58, 52.98)
CIE-LCHlch(88.96, 53.52, 98.14°)
OKLaboklab(90.23% -0.0227 0.1255)
OKLCHoklch(90.23% 0.128 100.3)
XYZxyz(66.9354, 74.0861, 28.5399)
Luminance0.7408 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E178 #7889F2
analogous
#F2A478 #F2E178 #C6F278
triadic
#F2E178 #78F2E1 #E178F2
tetradic
#F2E178 #78F2A4 #7889F2 #F278C6
square
#F2E178 #78F2A4 #7889F2 #F278C6
split-complementary
#F2E178 #78C6F2 #A478F2
monochromatic
#DBBF15 #EDD540 #F2E178 #F7EDB0 #FCF9E3

Accessibility & contrast

On white

1.33
#F2E178 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.82
#F2E178 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E178
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E178#FFFFFF#000000##000000
##F2E1781.001.3315.8215.82
#FFFFFF1.331.0021.0021.00
#00000015.8221.001.001.00
##00000015.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#F2DC6F
Deuteranopia (green-blind)
#F7E27D
Tritanopia (blue-blind)
#FFD4C9
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f2e178;
/* rgb */ color: rgb(242, 225, 120);
/* oklch */ color: oklch(90.2% 0.128 100.3);
Tailwind
colors: {
  custom: {
    50: '#f8eaa1',
    500: '#f2e178',
    950: '#000000',
  },
}
SCSS
$custom: #f2e178;
$custom-light: #f8eaa1;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e178",
  "rgb": {
    "r": 242,
    "g": 225,
    "b": 120
  },
  "hsl": {
    "h": 51.639,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.90225,
    "c": 0.12754,
    "h": 100.3
  },
  "luminance": 0.74084
}

Semantic roles & 50–950 ramp

primary
#F2E178
secondary
#4255CC
accent
#25DF07
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F2E178

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

Preview Lab → · Contrast checker → · Palette generator →

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