#F2E381#F2E381

#F2E381 is a very light, vivid yellow. Relative luminance 0.754; OKLCH L 90.8% C 0.120 H 100.7°. Best body text is #000000 at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#F2E381
RGBrgb(242, 227, 129)
HSLhsl(52, 81%, 73%)
HSVhsv(52, 47%, 95%)
CMYKcmyk(0%, 6.2%, 46.7%, 5.1%)
CIE-LABlab(89.58, -7.79, 49.43)
CIE-LCHlch(89.58, 50.04, 98.95°)
OKLaboklab(90.75% -0.0224 0.1184)
OKLCHoklch(90.75% 0.121 100.7)
XYZxyz(68.0513, 75.4026, 31.7341)
Luminance0.7540 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E381 #8190F2
analogous
#F2AA81 #F2E381 #C9F281
triadic
#F2E381 #81F2E3 #E381F2
tetradic
#F2E381 #81F2AA #8190F2 #F281C9
square
#F2E381 #81F2AA #8190F2 #F281C9
split-complementary
#F2E381 #81C9F2 #AA81F2
monochromatic
#E1C717 #ECD74A #F2E381 #F8EFB8 #FCF9E3

Accessibility & contrast

On white

1.31
#F2E381 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.08
#F2E381 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E381
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E381#FFFFFF#000000##000000
##F2E3811.001.3116.0816.08
#FFFFFF1.311.0021.0021.00
#00000016.0821.001.001.00
##00000016.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3DE79
Deuteranopia (green-blind)
#F8E485
Tritanopia (blue-blind)
#FFD7CC
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #f2e381;
/* rgb */ color: rgb(242, 227, 129);
/* oklch */ color: oklch(90.8% 0.120 100.7);
Tailwind
colors: {
  custom: {
    50: '#f8eba7',
    500: '#f2e381',
    950: '#000000',
  },
}
SCSS
$custom: #f2e381;
$custom-light: #f8eba7;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e381",
  "rgb": {
    "r": 242,
    "g": 227,
    "b": 129
  },
  "hsl": {
    "h": 52.035,
    "s": 81.295,
    "l": 72.745
  },
  "oklch": {
    "l": 0.9075,
    "c": 0.1205,
    "h": 100.7
  },
  "luminance": 0.754
}

Semantic roles & 50–950 ramp

primary
#F2E381
secondary
#4A5BCD
accent
#24DE08
background
#FFFEFC
surface
#FFFDF6
border
#D7D5D0
text
#171610
muted
#858480

Preview Lab

Preview with #F2E381

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

Preview Lab → · Contrast checker → · Palette generator →

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