#F2D87F#F2D87F

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

Color values

HEX#F2D87F
RGBrgb(242, 216, 127)
HSLhsl(46, 82%, 72%)
HSVhsv(46, 48%, 95%)
CMYKcmyk(0%, 10.7%, 47.5%, 5.1%)
CIE-LABlab(86.76, -2.41, 46.93)
CIE-LCHlch(86.76, 47.00, 92.94°)
OKLaboklab(88.51% -0.0071 0.1127)
OKLCHoklch(88.51% 0.113 93.6)
XYZxyz(65.0066, 69.5239, 30.0698)
Luminance0.6952 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D87F #7F99F2
analogous
#F29F7F #F2D87F #D2F27F
triadic
#F2D87F #7FF2D8 #D87FF2
tetradic
#F2D87F #7FF29F #7F99F2 #F27FD2
square
#F2D87F #7FF29F #7F99F2 #F27FD2
split-complementary
#F2D87F #7FD2F2 #9F7FF2
monochromatic
#E0B217 #ECC747 #F2D87F #F8E9B7 #FCF7E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2D87F#FFFFFF#000000##000000
##F2D87F1.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)
#E9D578
Deuteranopia (green-blind)
#F0DD82
Tritanopia (blue-blind)
#FFCCC3
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #f2d87f;
/* rgb */ color: rgb(242, 216, 127);
/* oklch */ color: oklch(88.5% 0.113 93.6);
Tailwind
colors: {
  custom: {
    50: '#f8e3a6',
    500: '#f2d87f',
    950: '#000000',
  },
}
SCSS
$custom: #f2d87f;
$custom-light: #f8e3a6;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d87f",
  "rgb": {
    "r": 242,
    "g": 216,
    "b": 127
  },
  "hsl": {
    "h": 46.435,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.88511,
    "c": 0.11291,
    "h": 93.6
  },
  "luminance": 0.69521
}

Semantic roles & 50–950 ramp

primary
#F2D87F
secondary
#4866CD
accent
#38DE08
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17150F
muted
#858480

Preview Lab

Preview with #F2D87F

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

Preview Lab → · Contrast checker → · Palette generator →

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