#F2D478#F2D478

#F2D478 is a very light, moderate yellow. Relative luminance 0.673; OKLCH L 87.6% C 0.117 H 91.8°. Best body text is #000000 at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#F2D478
RGBrgb(242, 212, 120)
HSLhsl(45, 82%, 71%)
HSVhsv(45, 50%, 95%)
CMYKcmyk(0%, 12.4%, 50.4%, 5.1%)
CIE-LABlab(85.67, -0.99, 49.00)
CIE-LCHlch(85.67, 49.01, 91.16°)
OKLaboklab(87.62% -0.0037 0.1168)
OKLCHoklch(87.62% 0.117 91.8)
XYZxyz(63.5539, 67.3231, 27.4127)
Luminance0.6732 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D478 #7896F2
analogous
#F29778 #F2D478 #D3F278
triadic
#F2D478 #78F2D4 #D478F2
tetradic
#F2D478 #78F297 #7896F2 #F278D3
square
#F2D478 #78F297 #7896F2 #F278D3
split-complementary
#F2D478 #78D3F2 #9778F2
monochromatic
#DBAA15 #EDC240 #F2D478 #F7E6B0 #FCF6E3

Accessibility & contrast

On white

1.45
#F2D478 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.46
#F2D478 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D478
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D478#FFFFFF#000000##000000
##F2D4781.001.4514.4614.46
#FFFFFF1.451.0021.0021.00
#00000014.4621.001.001.00
##00000014.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6D170
Deuteranopia (green-blind)
#EDDA7B
Tritanopia (blue-blind)
#FFC7BE
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #f2d478;
/* rgb */ color: rgb(242, 212, 120);
/* oklch */ color: oklch(87.6% 0.117 91.8);
Tailwind
colors: {
  custom: {
    50: '#f9e1a1',
    500: '#f2d478',
    950: '#000000',
  },
}
SCSS
$custom: #f2d478;
$custom-light: #f9e1a1;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d478",
  "rgb": {
    "r": 242,
    "g": 212,
    "b": 120
  },
  "hsl": {
    "h": 45.246,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.87618,
    "c": 0.11682,
    "h": 91.8
  },
  "luminance": 0.6732
}

Semantic roles & 50–950 ramp

primary
#F2D478
secondary
#4264CC
accent
#3CDF07
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150F
muted
#868480

Preview Lab

Preview with #F2D478

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

Preview Lab → · Contrast checker → · Palette generator →

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