#F2D477#F2D477

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

Color values

HEX#F2D477
RGBrgb(242, 212, 119)
HSLhsl(45, 83%, 71%)
HSVhsv(45, 51%, 95%)
CMYKcmyk(0%, 12.4%, 50.8%, 5.1%)
CIE-LABlab(85.65, -1.08, 49.47)
CIE-LCHlch(85.65, 49.48, 91.25°)
OKLaboklab(87.6% -0.004 0.1177)
OKLCHoklch(87.6% 0.118 92)
XYZxyz(63.4935, 67.2990, 27.0947)
Luminance0.6730 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D477 #7795F2
analogous
#F29677 #F2D477 #D2F277
triadic
#F2D477 #77F2D4 #D477F2
tetradic
#F2D477 #77F296 #7795F2 #F277D2
square
#F2D477 #77F296 #7795F2 #F277D2
split-complementary
#F2D477 #77D2F2 #9677F2
monochromatic
#DAAA15 #EDC23F #F2D477 #F7E6AF #FCF6E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2D477#FFFFFF#000000##000000
##F2D4771.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)
#E6D16F
Deuteranopia (green-blind)
#EDDA7B
Tritanopia (blue-blind)
#FFC7BE
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #f2d477;
/* rgb */ color: rgb(242, 212, 119);
/* oklch */ color: oklch(87.6% 0.118 92.0);
Tailwind
colors: {
  custom: {
    50: '#f9e1a0',
    500: '#f2d477',
    950: '#000000',
  },
}
SCSS
$custom: #f2d477;
$custom-light: #f9e1a0;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d477",
  "rgb": {
    "r": 242,
    "g": 212,
    "b": 119
  },
  "hsl": {
    "h": 45.366,
    "s": 82.55,
    "l": 70.784
  },
  "oklch": {
    "l": 0.87604,
    "c": 0.11778,
    "h": 92
  },
  "luminance": 0.67296
}

Semantic roles & 50–950 ramp

primary
#F2D477
secondary
#4163CC
accent
#3BDF07
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150F
muted
#868480

Preview Lab

Preview with #F2D477

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

Preview Lab → · Contrast checker → · Palette generator →

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