#F2E170#F2E170

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

Color values

HEX#F2E170
RGBrgb(242, 225, 112)
HSLhsl(52, 83%, 69%)
HSVhsv(52, 54%, 95%)
CMYKcmyk(0%, 7%, 53.7%, 5.1%)
CIE-LABlab(88.88, -8.24, 56.60)
CIE-LCHlch(88.88, 57.19, 98.28°)
OKLaboklab(90.13% -0.0255 0.1327)
OKLCHoklch(90.13% 0.135 100.9)
XYZxyz(66.4700, 73.9000, 26.0889)
Luminance0.7390 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E170 #7081F2
analogous
#F2A070 #F2E170 #C2F270
triadic
#F2E170 #70F2E1 #E170F2
tetradic
#F2E170 #70F2A0 #7081F2 #F270C2
square
#F2E170 #70F2A0 #7081F2 #F270C2
split-complementary
#F2E170 #70C2F2 #A070F2
monochromatic
#D4BB13 #EDD538 #F2E170 #F7EDA8 #FCF9E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2E170#FFFFFF#000000##000000
##F2E1701.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)
#F3DB65
Deuteranopia (green-blind)
#F8E275
Tritanopia (blue-blind)
#FFD4C7
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f2e170;
/* rgb */ color: rgb(242, 225, 112);
/* oklch */ color: oklch(90.1% 0.135 100.9);
Tailwind
colors: {
  custom: {
    50: '#f9ea9c',
    500: '#f2e170',
    950: '#000000',
  },
}
SCSS
$custom: #f2e170;
$custom-light: #f9ea9c;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e170",
  "rgb": {
    "r": 242,
    "g": 225,
    "b": 112
  },
  "hsl": {
    "h": 52.154,
    "s": 83.333,
    "l": 69.412
  },
  "oklch": {
    "l": 0.90127,
    "c": 0.13507,
    "h": 100.9
  },
  "luminance": 0.73898
}

Semantic roles & 50–950 ramp

primary
#F2E170
secondary
#3B4ECB
accent
#22E006
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F2E170

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

Preview Lab → · Contrast checker → · Palette generator →

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