#F2E397#F2E397

#F2E397 is a very light, moderate yellow. Relative luminance 0.760; OKLCH L 91.1% C 0.097 H 98.4°. Best body text is #000000 at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#F2E397
RGBrgb(242, 227, 151)
HSLhsl(50, 78%, 77%)
HSVhsv(50, 38%, 95%)
CMYKcmyk(0%, 6.2%, 37.6%, 5.1%)
CIE-LABlab(89.88, -5.56, 38.98)
CIE-LCHlch(89.88, 39.38, 98.12°)
OKLaboklab(91.09% -0.0142 0.0959)
OKLCHoklch(91.09% 0.097 98.4)
XYZxyz(69.6742, 76.0518, 40.2814)
Luminance0.7605 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E397 #97A6F2
analogous
#F2B697 #F2E397 #D4F297
triadic
#F2E397 #97F2E3 #E397F2
tetradic
#F2E397 #97F2B6 #97A6F2 #F297D4
square
#F2E397 #97F2B6 #97A6F2 #F297D4
split-complementary
#F2E397 #97D4F2 #B697F2
monochromatic
#E4C62A #EBD461 #F2E397 #F9F2CD #FCF8E4

Accessibility & contrast

On white

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

On black

16.21
#F2E397 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E397
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E397#FFFFFF#000000##000000
##F2E3971.001.3016.2116.21
#FFFFFF1.301.0021.0021.00
#00000016.2121.001.001.00
##00000016.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1DF91
Deuteranopia (green-blind)
#F5E59A
Tritanopia (blue-blind)
#FFD9D0
Achromatopsia (no color)
#E2E2E2

Design tokens & code

CSS
--color: #f2e397;
/* rgb */ color: rgb(242, 227, 151);
/* oklch */ color: oklch(91.1% 0.097 98.4);
Tailwind
colors: {
  custom: {
    50: '#f7ebb6',
    500: '#f2e397',
    950: '#000000',
  },
}
SCSS
$custom: #f2e397;
$custom-light: #f7ebb6;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e397",
  "rgb": {
    "r": 242,
    "g": 227,
    "b": 151
  },
  "hsl": {
    "h": 50.11,
    "s": 77.778,
    "l": 77.059
  },
  "oklch": {
    "l": 0.91087,
    "c": 0.09697,
    "h": 98.4
  },
  "luminance": 0.7605
}

Semantic roles & 50–950 ramp

primary
#F2E397
secondary
#5E70CF
accent
#2EDA0B
background
#FFFEFD
surface
#FFFDF8
border
#D7D5D1
text
#171611
muted
#858481

Preview Lab

Preview with #F2E397

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

Preview Lab → · Contrast checker → · Palette generator →

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