#F2E97A#F2E97A

#F2E97A is a very light, vivid yellow. Relative luminance 0.786; OKLCH L 91.9% C 0.133 H 104.6°. Best body text is #000000 at 16.71:1 contrast (WCAG AA passes).

Color values

HEX#F2E97A
RGBrgb(242, 233, 122)
HSLhsl(56, 82%, 71%)
HSVhsv(56, 50%, 95%)
CMYKcmyk(0%, 3.7%, 49.6%, 5.1%)
CIE-LABlab(91.04, -11.40, 54.51)
CIE-LCHlch(91.04, 55.69, 101.81°)
OKLaboklab(91.88% -0.0335 0.129)
OKLCHoklch(91.88% 0.133 104.6)
XYZxyz(69.2716, 78.5623, 29.9236)
Luminance0.7856 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E97A #7A83F2
analogous
#F2AD7A #F2E97A #BFF27A
triadic
#F2E97A #7AF2E9 #E97AF2
tetradic
#F2E97A #7AF2AD #7A83F2 #F27ABF
square
#F2E97A #7AF2AD #7A83F2 #F27ABF
split-complementary
#F2E97A #7ABFF2 #AD7AF2
monochromatic
#DCCD16 #EDE042 #F2E97A #F7F2B2 #FCFAE3

Accessibility & contrast

On white

1.26
#F2E97A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.71
#F2E97A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E97A
16.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E97A#FFFFFF#000000##000000
##F2E97A1.001.2616.7116.71
#FFFFFF1.261.0021.0021.00
#00000016.7121.001.001.00
##00000016.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE270
Deuteranopia (green-blind)
#FDE87F
Tritanopia (blue-blind)
#FFDCCF
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f2e97a;
/* rgb */ color: rgb(242, 233, 122);
/* oklch */ color: oklch(91.9% 0.133 104.6);
Tailwind
colors: {
  custom: {
    50: '#f8efa3',
    500: '#f2e97a',
    950: '#000000',
  },
}
SCSS
$custom: #f2e97a;
$custom-light: #f8efa3;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e97a",
  "rgb": {
    "r": 242,
    "g": 233,
    "b": 122
  },
  "hsl": {
    "h": 55.5,
    "s": 82.192,
    "l": 71.373
  },
  "oklch": {
    "l": 0.91877,
    "c": 0.13332,
    "h": 104.6
  },
  "luminance": 0.7856
}

Semantic roles & 50–950 ramp

primary
#F2E97A
secondary
#444ECD
accent
#17DF07
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #F2E97A

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

Preview Lab → · Contrast checker → · Palette generator →

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