#F2E971#F2E971

#F2E971 is a very light, vivid yellow. Relative luminance 0.783; OKLCH L 91.8% C 0.142 H 104.9°. Best body text is #000000 at 16.67:1 contrast (WCAG AA passes).

Color values

HEX#F2E971
RGBrgb(242, 233, 113)
HSLhsl(56, 83%, 70%)
HSVhsv(56, 53%, 95%)
CMYKcmyk(0%, 3.7%, 53.3%, 5.1%)
CIE-LABlab(90.94, -12.14, 58.54)
CIE-LCHlch(90.94, 59.78, 101.71°)
OKLaboklab(91.77% -0.0365 0.1369)
OKLCHoklch(91.77% 0.142 104.9)
XYZxyz(68.7395, 78.3495, 27.1216)
Luminance0.7835 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E971 #717AF2
analogous
#F2A971 #F2E971 #BBF271
triadic
#F2E971 #71F2E9 #E971F2
tetradic
#F2E971 #71F2A9 #717AF2 #F271BB
square
#F2E971 #71F2A9 #717AF2 #F271BB
split-complementary
#F2E971 #71BBF2 #A971F2
monochromatic
#D5C814 #EDE039 #F2E971 #F7F2A9 #FCFAE1

Accessibility & contrast

On white

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

On black

16.67
#F2E971 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E971
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E971#FFFFFF#000000##000000
##F2E9711.001.2616.6716.67
#FFFFFF1.261.0021.0021.00
#00000016.6721.001.001.00
##00000016.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE265
Deuteranopia (green-blind)
#FEE877
Tritanopia (blue-blind)
#FFDCCE
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f2e971;
/* rgb */ color: rgb(242, 233, 113);
/* oklch */ color: oklch(91.8% 0.142 104.9);
Tailwind
colors: {
  custom: {
    50: '#f9ef9d',
    500: '#f2e971',
    950: '#000000',
  },
}
SCSS
$custom: #f2e971;
$custom-light: #f9ef9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e971",
  "rgb": {
    "r": 242,
    "g": 233,
    "b": 113
  },
  "hsl": {
    "h": 55.814,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.91769,
    "c": 0.14173,
    "h": 104.9
  },
  "luminance": 0.78347
}

Semantic roles & 50–950 ramp

primary
#F2E971
secondary
#3C46CB
accent
#15E006
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160E
muted
#86857F

Preview Lab

Preview with #F2E971

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

Preview Lab → · Contrast checker → · Palette generator →

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