#F2E478#F2E478

#F2E478 is a very light, vivid yellow. Relative luminance 0.757; OKLCH L 90.8% C 0.130 H 102.0°. Best body text is #000000 at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#F2E478
RGBrgb(242, 228, 120)
HSLhsl(53, 82%, 71%)
HSVhsv(53, 50%, 95%)
CMYKcmyk(0%, 5.8%, 50.4%, 5.1%)
CIE-LABlab(89.73, -9.08, 53.89)
CIE-LCHlch(89.73, 54.65, 99.57°)
OKLaboklab(90.83% -0.027 0.1275)
OKLCHoklch(90.83% 0.13 102)
XYZxyz(67.7535, 75.7224, 28.8126)
Luminance0.7572 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E478 #7886F2
analogous
#F2A778 #F2E478 #C3F278
triadic
#F2E478 #78F2E4 #E478F2
tetradic
#F2E478 #78F2A7 #7886F2 #F278C3
square
#F2E478 #78F2A7 #7886F2 #F278C3
split-complementary
#F2E478 #78C3F2 #A778F2
monochromatic
#DBC415 #EDD940 #F2E478 #F7EFB0 #FCF9E3

Accessibility & contrast

On white

1.30
#F2E478 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.14
#F2E478 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E478
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E478#FFFFFF#000000##000000
##F2E4781.001.3016.1416.14
#FFFFFF1.301.0021.0021.00
#00000016.1421.001.001.00
##00000016.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#F5DE6E
Deuteranopia (green-blind)
#F9E47D
Tritanopia (blue-blind)
#FFD7CB
Achromatopsia (no color)
#E2E2E2

Design tokens & code

CSS
--color: #f2e478;
/* rgb */ color: rgb(242, 228, 120);
/* oklch */ color: oklch(90.8% 0.130 102.0);
Tailwind
colors: {
  custom: {
    50: '#f8eca1',
    500: '#f2e478',
    950: '#000000',
  },
}
SCSS
$custom: #f2e478;
$custom-light: #f8eca1;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e478",
  "rgb": {
    "r": 242,
    "g": 228,
    "b": 120
  },
  "hsl": {
    "h": 53.115,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.90833,
    "c": 0.13035,
    "h": 102
  },
  "luminance": 0.7572
}

Semantic roles & 50–950 ramp

primary
#F2E478
secondary
#4252CC
accent
#1FDF07
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F2E478

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

Preview Lab → · Contrast checker → · Palette generator →

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