#F2E398#F2E398

#F2E398 is a very light, moderate yellow. Relative luminance 0.761; OKLCH L 91.1% C 0.096 H 98.3°. Best body text is #000000 at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#F2E398
RGBrgb(242, 227, 152)
HSLhsl(50, 78%, 77%)
HSVhsv(50, 37%, 95%)
CMYKcmyk(0%, 6.2%, 37.2%, 5.1%)
CIE-LABlab(89.90, -5.45, 38.50)
CIE-LCHlch(89.90, 38.88, 98.06°)
OKLaboklab(91.1% -0.0138 0.0949)
OKLCHoklch(91.1% 0.096 98.3)
XYZxyz(69.7557, 76.0844, 40.7109)
Luminance0.7608 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E398 #98A7F2
analogous
#F2B698 #F2E398 #D4F298
triadic
#F2E398 #98F2E3 #E398F2
tetradic
#F2E398 #98F2B6 #98A7F2 #F298D4
square
#F2E398 #98F2B6 #98A7F2 #F298D4
split-complementary
#F2E398 #98D4F2 #B698F2
monochromatic
#E4C52B #EBD462 #F2E398 #F9F2CE #FCF8E4

Accessibility & contrast

On white

1.29
#F2E398 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.22
#F2E398 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E398
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E398#FFFFFF#000000##000000
##F2E3981.001.2916.2216.22
#FFFFFF1.291.0021.0021.00
#00000016.2221.001.001.00
##00000016.2221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2e398;
/* rgb */ color: rgb(242, 227, 152);
/* oklch */ color: oklch(91.1% 0.096 98.3);
Tailwind
colors: {
  custom: {
    50: '#f7ebb7',
    500: '#f2e398',
    950: '#000000',
  },
}
SCSS
$custom: #f2e398;
$custom-light: #f7ebb7;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e398",
  "rgb": {
    "r": 242,
    "g": 227,
    "b": 152
  },
  "hsl": {
    "h": 50,
    "s": 77.586,
    "l": 77.255
  },
  "oklch": {
    "l": 0.91104,
    "c": 0.09584,
    "h": 98.3
  },
  "luminance": 0.76082
}

Semantic roles & 50–950 ramp

primary
#F2E398
secondary
#5F71D0
accent
#2EDA0C
background
#FFFEFD
surface
#FFFDF8
border
#D7D5D1
text
#171611
muted
#858481

Preview Lab

Preview with #F2E398

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

Preview Lab → · Contrast checker → · Palette generator →

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