#F2D87D#F2D87D

#F2D87D is a very light, moderate yellow. Relative luminance 0.695; OKLCH L 88.5% C 0.115 H 93.9°. Best body text is #000000 at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#F2D87D
RGBrgb(242, 216, 125)
HSLhsl(47, 82%, 72%)
HSVhsv(47, 48%, 95%)
CMYKcmyk(0%, 10.7%, 48.3%, 5.1%)
CIE-LABlab(86.74, -2.59, 47.88)
CIE-LCHlch(86.74, 47.95, 93.10°)
OKLaboklab(88.48% -0.0078 0.1147)
OKLCHoklch(88.48% 0.115 93.9)
XYZxyz(64.8776, 69.4723, 29.3902)
Luminance0.6947 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D87D #7D97F2
analogous
#F29E7D #F2D87D #D1F27D
triadic
#F2D87D #7DF2D8 #D87DF2
tetradic
#F2D87D #7DF29E #7D97F2 #F27DD1
square
#F2D87D #7DF29E #7D97F2 #F27DD1
split-complementary
#F2D87D #7DD1F2 #9E7DF2
monochromatic
#DEB216 #ECC745 #F2D87D #F8E9B5 #FCF7E3

Accessibility & contrast

On white

1.41
#F2D87D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.89
#F2D87D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D87D
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D87D#FFFFFF#000000##000000
##F2D87D1.001.4114.8914.89
#FFFFFF1.411.0021.0021.00
#00000014.8921.001.001.00
##00000014.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D575
Deuteranopia (green-blind)
#F0DD80
Tritanopia (blue-blind)
#FFCBC2
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #f2d87d;
/* rgb */ color: rgb(242, 216, 125);
/* oklch */ color: oklch(88.5% 0.115 93.9);
Tailwind
colors: {
  custom: {
    50: '#f8e3a4',
    500: '#f2d87d',
    950: '#000000',
  },
}
SCSS
$custom: #f2d87d;
$custom-light: #f8e3a4;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d87d",
  "rgb": {
    "r": 242,
    "g": 216,
    "b": 125
  },
  "hsl": {
    "h": 46.667,
    "s": 81.818,
    "l": 71.961
  },
  "oklch": {
    "l": 0.88483,
    "c": 0.11492,
    "h": 93.9
  },
  "luminance": 0.6947
}

Semantic roles & 50–950 ramp

primary
#F2D87D
secondary
#4664CD
accent
#37DE07
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#18150F
muted
#868480

Preview Lab

Preview with #F2D87D

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

Preview Lab → · Contrast checker → · Palette generator →

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