#F2E487#F2E487

#F2E487 is a very light, moderate yellow. Relative luminance 0.761; OKLCH L 91.0% C 0.115 H 100.8°. Best body text is #000000 at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#F2E487
RGBrgb(242, 228, 135)
HSLhsl(52, 80%, 74%)
HSVhsv(52, 44%, 95%)
CMYKcmyk(0%, 5.8%, 44.2%, 5.1%)
CIE-LABlab(89.91, -7.72, 46.94)
CIE-LCHlch(89.91, 47.57, 99.34°)
OKLaboklab(91.04% -0.0217 0.1132)
OKLCHoklch(91.04% 0.115 100.8)
XYZxyz(68.7362, 76.1155, 33.9880)
Luminance0.7611 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E487 #8795F2
analogous
#F2AF87 #F2E487 #CBF287
triadic
#F2E487 #87F2E4 #E487F2
tetradic
#F2E487 #87F2AF #8795F2 #F287CB
square
#F2E487 #87F2AF #8795F2 #F287CB
split-complementary
#F2E487 #87CBF2 #AF87F2
monochromatic
#E6CB19 #ECD850 #F2E487 #F8F0BE #FCF9E3

Accessibility & contrast

On white

1.29
#F2E487 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.22
#F2E487 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E487
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E487#FFFFFF#000000##000000
##F2E4871.001.2916.2216.22
#FFFFFF1.291.0021.0021.00
#00000016.2221.001.001.00
##00000016.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#F4DF80
Deuteranopia (green-blind)
#F8E58B
Tritanopia (blue-blind)
#FFD8CE
Achromatopsia (no color)
#E2E2E2

Design tokens & code

CSS
--color: #f2e487;
/* rgb */ color: rgb(242, 228, 135);
/* oklch */ color: oklch(91.0% 0.115 100.8);
Tailwind
colors: {
  custom: {
    50: '#f8ecab',
    500: '#f2e487',
    950: '#000000',
  },
}
SCSS
$custom: #f2e487;
$custom-light: #f8ecab;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e487",
  "rgb": {
    "r": 242,
    "g": 228,
    "b": 135
  },
  "hsl": {
    "h": 52.15,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.91037,
    "c": 0.11528,
    "h": 100.8
  },
  "luminance": 0.76113
}

Semantic roles & 50–950 ramp

primary
#F2E487
secondary
#4F60CE
accent
#24DD09
background
#FFFEFD
surface
#FFFDF7
border
#D7D5D0
text
#171610
muted
#858481

Preview Lab

Preview with #F2E487

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

Preview Lab → · Contrast checker → · Palette generator →

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