#F5E170#F5E170

#F5E170 is a very light, vivid yellow. Relative luminance 0.744; OKLCH L 90.4% C 0.135 H 99.4°. Best body text is #000000 at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#F5E170
RGBrgb(245, 225, 112)
HSLhsl(51, 87%, 70%)
HSVhsv(51, 54%, 96%)
CMYKcmyk(0%, 8.2%, 54.3%, 3.9%)
CIE-LABlab(89.13, -7.03, 56.96)
CIE-LCHlch(89.13, 57.39, 97.03°)
OKLaboklab(90.39% -0.0222 0.1334)
OKLCHoklch(90.39% 0.135 99.4)
XYZxyz(67.5084, 74.4354, 26.1376)
Luminance0.7443 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E170 #7084F5
analogous
#F59E70 #F5E170 #C7F570
triadic
#F5E170 #70F5E1 #E170F5
tetradic
#F5E170 #70F59E #7084F5 #F570C7
square
#F5E170 #70F59E #7084F5 #F570C7
split-complementary
#F5E170 #70C7F5 #9E70F5
monochromatic
#DBBD0F #F1D537 #F5E170 #F9EDA9 #FDF9E2

Accessibility & contrast

On white

1.32
#F5E170 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.89
#F5E170 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E170
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E170#FFFFFF#000000##000000
##F5E1701.001.3215.8915.89
#FFFFFF1.321.0021.0021.00
#00000015.8921.001.001.00
##00000015.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3DC65
Deuteranopia (green-blind)
#F9E375
Tritanopia (blue-blind)
#FFD3C7
Achromatopsia (no color)
#E0E0E0

Design tokens & code

CSS
--color: #f5e170;
/* rgb */ color: rgb(245, 225, 112);
/* oklch */ color: oklch(90.4% 0.135 99.4);
Tailwind
colors: {
  custom: {
    50: '#fbea9c',
    500: '#f5e170',
    950: '#000000',
  },
}
SCSS
$custom: #f5e170;
$custom-light: #fbea9c;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e170",
  "rgb": {
    "r": 245,
    "g": 225,
    "b": 112
  },
  "hsl": {
    "h": 50.977,
    "s": 86.928,
    "l": 70
  },
  "oklch": {
    "l": 0.90387,
    "c": 0.1352,
    "h": 99.4
  },
  "luminance": 0.74433
}

Semantic roles & 50–950 ramp

primary
#F5E170
secondary
#3A51CF
accent
#24E302
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F5E170

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

Preview Lab → · Contrast checker → · Palette generator →

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