#F5E17C#F5E17C

#F5E17C is a very light, vivid yellow. Relative luminance 0.747; OKLCH L 90.5% C 0.124 H 98.4°. Best body text is #000000 at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#F5E17C
RGBrgb(245, 225, 124)
HSLhsl(50, 86%, 72%)
HSVhsv(50, 49%, 96%)
CMYKcmyk(0%, 8.2%, 49.4%, 3.9%)
CIE-LABlab(89.26, -6.04, 51.50)
CIE-LCHlch(89.26, 51.85, 96.69°)
OKLaboklab(90.54% -0.018 0.1225)
OKLCHoklch(90.54% 0.124 98.4)
XYZxyz(68.2216, 74.7207, 29.8938)
Luminance0.7472 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E17C #7C90F5
analogous
#F5A57C #F5E17C #CCF57C
triadic
#F5E17C #7CF5E1 #E17CF5
tetradic
#F5E17C #7CF5A5 #7C90F5 #F57CCC
square
#F5E17C #7CF5A5 #7C90F5 #F57CCC
split-complementary
#F5E17C #7CCCF5 #A57CF5
monochromatic
#E5C211 #F1D443 #F5E17C #F9EEB5 #FDF8E3

Accessibility & contrast

On white

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

On black

15.94
#F5E17C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E17C
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E17C#FFFFFF#000000##000000
##F5E17C1.001.3215.9415.94
#FFFFFF1.321.0021.0021.00
#00000015.9421.001.001.00
##00000015.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#F2DC73
Deuteranopia (green-blind)
#F8E380
Tritanopia (blue-blind)
#FFD4C9
Achromatopsia (no color)
#E0E0E0

Design tokens & code

CSS
--color: #f5e17c;
/* rgb */ color: rgb(245, 225, 124);
/* oklch */ color: oklch(90.5% 0.124 98.4);
Tailwind
colors: {
  custom: {
    50: '#fbeaa4',
    500: '#f5e17c',
    950: '#000000',
  },
}
SCSS
$custom: #f5e17c;
$custom-light: #fbeaa4;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e17c",
  "rgb": {
    "r": 245,
    "g": 225,
    "b": 124
  },
  "hsl": {
    "h": 50.083,
    "s": 85.816,
    "l": 72.353
  },
  "oklch": {
    "l": 0.90537,
    "c": 0.12386,
    "h": 98.4
  },
  "luminance": 0.74718
}

Semantic roles & 50–950 ramp

primary
#F5E17C
secondary
#455CD1
accent
#28E203
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#18160F
muted
#868480

Preview Lab

Preview with #F5E17C

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

Preview Lab → · Contrast checker → · Palette generator →

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