#F2E787#F2E787

#F2E787 is a very light, moderate yellow. Relative luminance 0.778; OKLCH L 91.6% C 0.118 H 102.7°. Best body text is #000000 at 16.56:1 contrast (WCAG AA passes).

Color values

HEX#F2E787
RGBrgb(242, 231, 135)
HSLhsl(54, 80%, 74%)
HSVhsv(54, 44%, 95%)
CMYKcmyk(0%, 4.5%, 44.2%, 5.1%)
CIE-LABlab(90.68, -9.22, 47.89)
CIE-LCHlch(90.68, 48.77, 100.90°)
OKLaboklab(91.65% -0.026 0.1154)
OKLCHoklch(91.65% 0.118 102.7)
XYZxyz(69.5686, 77.7804, 34.2654)
Luminance0.7778 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E787 #8792F2
analogous
#F2B287 #F2E787 #C8F287
triadic
#F2E787 #87F2E7 #E787F2
tetradic
#F2E787 #87F2B2 #8792F2 #F287C8
square
#F2E787 #87F2B2 #8792F2 #F287C8
split-complementary
#F2E787 #87C8F2 #B287F2
monochromatic
#E6D119 #ECDC50 #F2E787 #F8F2BE #FCF9E3

Accessibility & contrast

On white

1.27
#F2E787 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.56
#F2E787 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E787
16.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E787#FFFFFF#000000##000000
##F2E7871.001.2716.5616.56
#FFFFFF1.271.0021.0021.00
#00000016.5621.001.001.00
##00000016.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#F7E17F
Deuteranopia (green-blind)
#FAE78B
Tritanopia (blue-blind)
#FFDBD0
Achromatopsia (no color)
#E4E4E4

Design tokens & code

CSS
--color: #f2e787;
/* rgb */ color: rgb(242, 231, 135);
/* oklch */ color: oklch(91.6% 0.118 102.7);
Tailwind
colors: {
  custom: {
    50: '#f8eeab',
    500: '#f2e787',
    950: '#000000',
  },
}
SCSS
$custom: #f2e787;
$custom-light: #f8eeab;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e787",
  "rgb": {
    "r": 242,
    "g": 231,
    "b": 135
  },
  "hsl": {
    "h": 53.832,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.91645,
    "c": 0.11825,
    "h": 102.7
  },
  "luminance": 0.77778
}

Semantic roles & 50–950 ramp

primary
#F2E787
secondary
#4F5CCE
accent
#1FDD09
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#171610
muted
#858581

Preview Lab

Preview with #F2E787

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

Preview Lab → · Contrast checker → · Palette generator →

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