#F2D87E#F2D87E

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

Color values

HEX#F2D87E
RGBrgb(242, 216, 126)
HSLhsl(47, 82%, 72%)
HSVhsv(47, 48%, 95%)
CMYKcmyk(0%, 10.7%, 47.9%, 5.1%)
CIE-LABlab(86.75, -2.50, 47.41)
CIE-LCHlch(86.75, 47.47, 93.02°)
OKLaboklab(88.5% -0.0074 0.1137)
OKLCHoklch(88.5% 0.114 93.7)
XYZxyz(64.9418, 69.4980, 29.7283)
Luminance0.6949 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D87E #7E98F2
analogous
#F29E7E #F2D87E #D2F27E
triadic
#F2D87E #7EF2D8 #D87EF2
tetradic
#F2D87E #7EF29E #7E98F2 #F27ED2
square
#F2D87E #7EF29E #7E98F2 #F27ED2
split-complementary
#F2D87E #7ED2F2 #9E7EF2
monochromatic
#DFB216 #ECC746 #F2D87E #F8E9B6 #FCF7E3

Accessibility & contrast

On white

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

On black

14.90
#F2D87E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D87E
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D87E#FFFFFF#000000##000000
##F2D87E1.001.4114.9014.90
#FFFFFF1.411.0021.0021.00
#00000014.9021.001.001.00
##00000014.9021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2d87e;
/* rgb */ color: rgb(242, 216, 126);
/* oklch */ color: oklch(88.5% 0.114 93.7);
Tailwind
colors: {
  custom: {
    50: '#f8e3a5',
    500: '#f2d87e',
    950: '#000000',
  },
}
SCSS
$custom: #f2d87e;
$custom-light: #f8e3a5;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d87e",
  "rgb": {
    "r": 242,
    "g": 216,
    "b": 126
  },
  "hsl": {
    "h": 46.552,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.88497,
    "c": 0.11392,
    "h": 93.7
  },
  "luminance": 0.69495
}

Semantic roles & 50–950 ramp

primary
#F2D87E
secondary
#4765CD
accent
#38DE07
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17150F
muted
#858480

Preview Lab

Preview with #F2D87E

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

Preview Lab → · Contrast checker → · Palette generator →

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