#F2D87C#F2D87C

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

Color values

HEX#F2D87C
RGBrgb(242, 216, 124)
HSLhsl(47, 82%, 72%)
HSVhsv(47, 49%, 95%)
CMYKcmyk(0%, 10.7%, 48.8%, 5.1%)
CIE-LABlab(86.72, -2.68, 48.35)
CIE-LCHlch(86.72, 48.42, 93.18°)
OKLaboklab(88.47% -0.0082 0.1156)
OKLCHoklch(88.47% 0.116 94)
XYZxyz(64.8140, 69.4469, 29.0554)
Luminance0.6944 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D87C #7C96F2
analogous
#F29D7C #F2D87C #D1F27C
triadic
#F2D87C #7CF2D8 #D87CF2
tetradic
#F2D87C #7CF29D #7C96F2 #F27CD1
square
#F2D87C #7CF29D #7C96F2 #F27CD1
split-complementary
#F2D87C #7CD1F2 #9D7CF2
monochromatic
#DEB216 #ECC744 #F2D87C #F8E9B4 #FCF7E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2D87C#FFFFFF#000000##000000
##F2D87C1.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)
#E9D474
Deuteranopia (green-blind)
#F0DD80
Tritanopia (blue-blind)
#FFCBC2
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #f2d87c;
/* rgb */ color: rgb(242, 216, 124);
/* oklch */ color: oklch(88.5% 0.116 94.0);
Tailwind
colors: {
  custom: {
    50: '#f8e3a4',
    500: '#f2d87c',
    950: '#000000',
  },
}
SCSS
$custom: #f2d87c;
$custom-light: #f8e3a4;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d87c",
  "rgb": {
    "r": 242,
    "g": 216,
    "b": 124
  },
  "hsl": {
    "h": 46.78,
    "s": 81.944,
    "l": 71.765
  },
  "oklch": {
    "l": 0.88469,
    "c": 0.11592,
    "h": 94
  },
  "luminance": 0.69444
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F2D87C

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

Preview Lab → · Contrast checker → · Palette generator →

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