#F2E87A#F2E87A

#F2E87A is a very light, vivid yellow. Relative luminance 0.780; OKLCH L 91.7% C 0.132 H 104.0°. Best body text is #000000 at 16.60:1 contrast (WCAG AA passes).

Color values

HEX#F2E87A
RGBrgb(242, 232, 122)
HSLhsl(55, 82%, 71%)
HSVhsv(55, 50%, 95%)
CMYKcmyk(0%, 4.1%, 49.6%, 5.1%)
CIE-LABlab(90.78, -10.90, 54.21)
CIE-LCHlch(90.78, 55.29, 101.37°)
OKLaboklab(91.67% -0.0321 0.1284)
OKLCHoklch(91.67% 0.132 104)
XYZxyz(68.9893, 77.9977, 29.8295)
Luminance0.7800 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E87A #7A84F2
analogous
#F2AC7A #F2E87A #C0F27A
triadic
#F2E87A #7AF2E8 #E87AF2
tetradic
#F2E87A #7AF2AC #7A84F2 #F27AC0
square
#F2E87A #7AF2AC #7A84F2 #F27AC0
split-complementary
#F2E87A #7AC0F2 #AC7AF2
monochromatic
#DCCC16 #EDDE42 #F2E87A #F7F2B2 #FCFAE3

Accessibility & contrast

On white

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

On black

16.60
#F2E87A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E87A
16.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E87A#FFFFFF#000000##000000
##F2E87A1.001.2716.6016.60
#FFFFFF1.271.0021.0021.00
#00000016.6021.001.001.00
##00000016.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#F9E170
Deuteranopia (green-blind)
#FCE77F
Tritanopia (blue-blind)
#FFDBCF
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f2e87a;
/* rgb */ color: rgb(242, 232, 122);
/* oklch */ color: oklch(91.7% 0.132 104.0);
Tailwind
colors: {
  custom: {
    50: '#f8efa3',
    500: '#f2e87a',
    950: '#000000',
  },
}
SCSS
$custom: #f2e87a;
$custom-light: #f8efa3;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e87a",
  "rgb": {
    "r": 242,
    "g": 232,
    "b": 122
  },
  "hsl": {
    "h": 55,
    "s": 82.192,
    "l": 71.373
  },
  "oklch": {
    "l": 0.91673,
    "c": 0.13232,
    "h": 104
  },
  "luminance": 0.77996
}

Semantic roles & 50–950 ramp

primary
#F2E87A
secondary
#444FCD
accent
#19DF07
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #F2E87A

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

Preview Lab → · Contrast checker → · Palette generator →

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