#F2E171#F2E171

#F2E171 is a very light, vivid yellow. Relative luminance 0.739; OKLCH L 90.1% C 0.134 H 100.8°. Best body text is #000000 at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#F2E171
RGBrgb(242, 225, 113)
HSLhsl(52, 83%, 70%)
HSVhsv(52, 53%, 95%)
CMYKcmyk(0%, 7%, 53.3%, 5.1%)
CIE-LABlab(88.89, -8.16, 56.15)
CIE-LCHlch(88.89, 56.74, 98.27°)
OKLaboklab(90.14% -0.0251 0.1318)
OKLCHoklch(90.14% 0.134 100.8)
XYZxyz(66.5260, 73.9224, 26.3838)
Luminance0.7392 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E171 #7182F2
analogous
#F2A171 #F2E171 #C3F271
triadic
#F2E171 #71F2E1 #E171F2
tetradic
#F2E171 #71F2A1 #7182F2 #F271C3
square
#F2E171 #71F2A1 #7182F2 #F271C3
split-complementary
#F2E171 #71C3F2 #A171F2
monochromatic
#D5BC14 #EDD539 #F2E171 #F7EDA9 #FCF9E1

Accessibility & contrast

On white

1.33
#F2E171 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.78
#F2E171 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E171
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E171#FFFFFF#000000##000000
##F2E1711.001.3315.7815.78
#FFFFFF1.331.0021.0021.00
#00000015.7821.001.001.00
##00000015.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3DB66
Deuteranopia (green-blind)
#F8E276
Tritanopia (blue-blind)
#FFD4C8
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f2e171;
/* rgb */ color: rgb(242, 225, 113);
/* oklch */ color: oklch(90.1% 0.134 100.8);
Tailwind
colors: {
  custom: {
    50: '#f9ea9d',
    500: '#f2e171',
    950: '#000000',
  },
}
SCSS
$custom: #f2e171;
$custom-light: #f9ea9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e171",
  "rgb": {
    "r": 242,
    "g": 225,
    "b": 113
  },
  "hsl": {
    "h": 52.093,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.90139,
    "c": 0.13415,
    "h": 100.8
  },
  "luminance": 0.7392
}

Semantic roles & 50–950 ramp

primary
#F2E171
secondary
#3C4FCB
accent
#23E006
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F2E171

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

Preview Lab → · Contrast checker → · Palette generator →

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