#F2ED96#F2ED96

#F2ED96 is a very light, moderate yellow. Relative luminance 0.816; OKLCH L 93.1% C 0.108 H 105.5°. Best body text is #000000 at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#F2ED96
RGBrgb(242, 237, 150)
HSLhsl(57, 78%, 77%)
HSVhsv(57, 38%, 95%)
CMYKcmyk(0%, 2.1%, 38%, 5.1%)
CIE-LABlab(92.42, -10.67, 42.75)
CIE-LCHlch(92.42, 44.06, 104.02°)
OKLaboklab(93.09% -0.0289 0.1045)
OKLCHoklch(93.09% 0.108 105.5)
XYZxyz(72.4082, 81.6493, 40.7938)
Luminance0.8165 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2ED96 #969BF2
analogous
#F2BF96 #F2ED96 #C9F296
triadic
#F2ED96 #96F2ED #ED96F2
tetradic
#F2ED96 #96F2BF #969BF2 #F296C9
square
#F2ED96 #96F2BF #969BF2 #F296C9
split-complementary
#F2ED96 #96C9F2 #BF96F2
monochromatic
#E5DA29 #EBE460 #F2ED96 #F9F6CC #FCFAE4

Accessibility & contrast

On white

1.21
#F2ED96 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.33
#F2ED96 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2ED96
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2ED96#FFFFFF#000000##000000
##F2ED961.001.2117.3317.33
#FFFFFF1.211.0021.0021.00
#00000017.3321.001.001.00
##00000017.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBE78F
Deuteranopia (green-blind)
#FDEB9A
Tritanopia (blue-blind)
#FEE2D7
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #f2ed96;
/* rgb */ color: rgb(242, 237, 150);
/* oklch */ color: oklch(93.1% 0.108 105.5);
Tailwind
colors: {
  custom: {
    50: '#f7f2b6',
    500: '#f2ed96',
    950: '#000000',
  },
}
SCSS
$custom: #f2ed96;
$custom-light: #f7f2b6;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ed96",
  "rgb": {
    "r": 242,
    "g": 237,
    "b": 150
  },
  "hsl": {
    "h": 56.739,
    "s": 77.966,
    "l": 76.863
  },
  "oklch": {
    "l": 0.93092,
    "c": 0.10847,
    "h": 105.5
  },
  "luminance": 0.81648
}

Semantic roles & 50–950 ramp

primary
#F2ED96
secondary
#5D63CF
accent
#17DA0B
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171611
muted
#858581

Preview Lab

Preview with #F2ED96

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

Preview Lab → · Contrast checker → · Palette generator →

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