#F2E387#F2E387

#F2E387 is a very light, moderate yellow. Relative luminance 0.756; OKLCH L 90.8% C 0.114 H 100.2°. Best body text is #000000 at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#F2E387
RGBrgb(242, 227, 135)
HSLhsl(52, 80%, 74%)
HSVhsv(52, 44%, 95%)
CMYKcmyk(0%, 6.2%, 44.2%, 5.1%)
CIE-LABlab(89.66, -7.22, 46.62)
CIE-LCHlch(89.66, 47.18, 98.80°)
OKLaboklab(90.84% -0.0202 0.1125)
OKLCHoklch(90.84% 0.114 100.2)
XYZxyz(68.4619, 75.5669, 33.8965)
Luminance0.7557 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E387 #8796F2
analogous
#F2AE87 #F2E387 #CCF287
triadic
#F2E387 #87F2E3 #E387F2
tetradic
#F2E387 #87F2AE #8796F2 #F287CC
square
#F2E387 #87F2AE #8796F2 #F287CC
split-complementary
#F2E387 #87CCF2 #AE87F2
monochromatic
#E6C919 #ECD650 #F2E387 #F8F0BE #FCF9E3

Accessibility & contrast

On white

1.30
#F2E387 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.11
#F2E387 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E387
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E387#FFFFFF#000000##000000
##F2E3871.001.3016.1116.11
#FFFFFF1.301.0021.0021.00
#00000016.1121.001.001.00
##00000016.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3DE80
Deuteranopia (green-blind)
#F7E48B
Tritanopia (blue-blind)
#FFD7CD
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #f2e387;
/* rgb */ color: rgb(242, 227, 135);
/* oklch */ color: oklch(90.8% 0.114 100.2);
Tailwind
colors: {
  custom: {
    50: '#f8ebab',
    500: '#f2e387',
    950: '#000000',
  },
}
SCSS
$custom: #f2e387;
$custom-light: #f8ebab;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e387",
  "rgb": {
    "r": 242,
    "g": 227,
    "b": 135
  },
  "hsl": {
    "h": 51.589,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.90835,
    "c": 0.11431,
    "h": 100.2
  },
  "luminance": 0.75565
}

Semantic roles & 50–950 ramp

primary
#F2E387
secondary
#4F61CE
accent
#26DD09
background
#FFFEFD
surface
#FFFDF7
border
#D7D5D0
text
#171610
muted
#858481

Preview Lab

Preview with #F2E387

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

Preview Lab → · Contrast checker → · Palette generator →

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