#F2DB87#F2DB87

#F2DB87 is a very light, moderate yellow. Relative luminance 0.713; OKLCH L 89.2% C 0.107 H 94.6°. Best body text is #000000 at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#F2DB87
RGBrgb(242, 219, 135)
HSLhsl(47, 80%, 74%)
HSVhsv(47, 44%, 95%)
CMYKcmyk(0%, 9.5%, 44.2%, 5.1%)
CIE-LABlab(87.63, -3.18, 44.07)
CIE-LCHlch(87.63, 44.19, 94.13°)
OKLaboklab(89.23% -0.0085 0.1068)
OKLCHoklch(89.23% 0.107 94.6)
XYZxyz(66.3244, 71.2920, 33.1840)
Luminance0.7129 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DB87 #879EF2
analogous
#F2A687 #F2DB87 #D4F287
triadic
#F2DB87 #87F2DB #DB87F2
tetradic
#F2DB87 #87F2A6 #879EF2 #F287D4
square
#F2DB87 #87F2A6 #879EF2 #F287D4
split-complementary
#F2DB87 #87D4F2 #A687F2
monochromatic
#E6BA19 #ECCA50 #F2DB87 #F8ECBE #FCF7E3

Accessibility & contrast

On white

1.38
#F2DB87 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.26
#F2DB87 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DB87
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DB87#FFFFFF#000000##000000
##F2DB871.001.3815.2615.26
#FFFFFF1.381.0021.0021.00
#00000015.2621.001.001.00
##00000015.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD780
Deuteranopia (green-blind)
#F1DF8A
Tritanopia (blue-blind)
#FFCFC6
Achromatopsia (no color)
#DCDCDC

Design tokens & code

CSS
--color: #f2db87;
/* rgb */ color: rgb(242, 219, 135);
/* oklch */ color: oklch(89.2% 0.107 94.6);
Tailwind
colors: {
  custom: {
    50: '#f8e6ab',
    500: '#f2db87',
    950: '#000000',
  },
}
SCSS
$custom: #f2db87;
$custom-light: #f8e6ab;
$custom-dark: #000000;
JSON
{
  "hex": "#f2db87",
  "rgb": {
    "r": 242,
    "g": 219,
    "b": 135
  },
  "hsl": {
    "h": 47.103,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.89228,
    "c": 0.10712,
    "h": 94.6
  },
  "luminance": 0.7129
}

Semantic roles & 50–950 ramp

primary
#F2DB87
secondary
#4F6BCE
accent
#36DD09
background
#FFFEFD
surface
#FFFCF7
border
#D7D5D0
text
#171510
muted
#858481

Preview Lab

Preview with #F2DB87

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

Preview Lab → · Contrast checker → · Palette generator →

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