#F2EB97#F2EB97

#F2EB97 is a very light, moderate yellow. Relative luminance 0.805; OKLCH L 92.7% C 0.105 H 104.1°. Best body text is #000000 at 17.11:1 contrast (WCAG AA passes).

Color values

HEX#F2EB97
RGBrgb(242, 235, 151)
HSLhsl(55, 78%, 77%)
HSVhsv(55, 38%, 95%)
CMYKcmyk(0%, 2.9%, 37.6%, 5.1%)
CIE-LABlab(91.92, -9.57, 41.62)
CIE-LCHlch(91.92, 42.70, 102.95°)
OKLaboklab(92.7% -0.0257 0.102)
OKLCHoklch(92.7% 0.105 104.1)
XYZxyz(71.9133, 80.5300, 41.0278)
Luminance0.8053 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2EB97 #979EF2
analogous
#F2BE97 #F2EB97 #CBF297
triadic
#F2EB97 #97F2EB #EB97F2
tetradic
#F2EB97 #97F2BE #979EF2 #F297CB
square
#F2EB97 #97F2BE #979EF2 #F297CB
split-complementary
#F2EB97 #97CBF2 #BE97F2
monochromatic
#E4D62A #EBE161 #F2EB97 #F9F5CD #FCFAE4

Accessibility & contrast

On white

1.23
#F2EB97 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.11
#F2EB97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2EB97
17.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2EB97#FFFFFF#000000##000000
##F2EB971.001.2317.1117.11
#FFFFFF1.231.0021.0021.00
#00000017.1121.001.001.00
##00000017.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F9E591
Deuteranopia (green-blind)
#FCEA9A
Tritanopia (blue-blind)
#FFE1D6
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #f2eb97;
/* rgb */ color: rgb(242, 235, 151);
/* oklch */ color: oklch(92.7% 0.105 104.1);
Tailwind
colors: {
  custom: {
    50: '#f7f1b6',
    500: '#f2eb97',
    950: '#000000',
  },
}
SCSS
$custom: #f2eb97;
$custom-light: #f7f1b6;
$custom-dark: #000000;
JSON
{
  "hex": "#f2eb97",
  "rgb": {
    "r": 242,
    "g": 235,
    "b": 151
  },
  "hsl": {
    "h": 55.385,
    "s": 77.778,
    "l": 77.059
  },
  "oklch": {
    "l": 0.92702,
    "c": 0.10518,
    "h": 104.1
  },
  "luminance": 0.80528
}

Semantic roles & 50–950 ramp

primary
#F2EB97
secondary
#5E67CF
accent
#1BDA0B
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171611
muted
#858581

Preview Lab

Preview with #F2EB97

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

Preview Lab → · Contrast checker → · Palette generator →

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