#F5E17A#F5E17A

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

Color values

HEX#F5E17A
RGBrgb(245, 225, 122)
HSLhsl(50, 86%, 72%)
HSVhsv(50, 50%, 96%)
CMYKcmyk(0%, 8.2%, 50.2%, 3.9%)
CIE-LABlab(89.24, -6.21, 52.42)
CIE-LCHlch(89.24, 52.79, 96.76°)
OKLaboklab(90.51% -0.0187 0.1244)
OKLCHoklch(90.51% 0.126 98.6)
XYZxyz(68.0964, 74.6706, 29.2345)
Luminance0.7467 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E17A #7A8EF5
analogous
#F5A47A #F5E17A #CCF57A
triadic
#F5E17A #7AF5E1 #E17AF5
tetradic
#F5E17A #7AF5A4 #7A8EF5 #F57ACC
square
#F5E17A #7AF5A4 #7A8EF5 #F57ACC
split-complementary
#F5E17A #7ACCF5 #A47AF5
monochromatic
#E3C111 #F1D441 #F5E17A #F9EEB3 #FDF9E3

Accessibility & contrast

On white

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

On black

15.93
#F5E17A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E17A
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E17A#FFFFFF#000000##000000
##F5E17A1.001.3215.9315.93
#FFFFFF1.321.0021.0021.00
#00000015.9321.001.001.00
##00000015.9321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f5e17a;
/* rgb */ color: rgb(245, 225, 122);
/* oklch */ color: oklch(90.5% 0.126 98.6);
Tailwind
colors: {
  custom: {
    50: '#fbeaa3',
    500: '#f5e17a',
    950: '#000000',
  },
}
SCSS
$custom: #f5e17a;
$custom-light: #fbeaa3;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e17a",
  "rgb": {
    "r": 245,
    "g": 225,
    "b": 122
  },
  "hsl": {
    "h": 50.244,
    "s": 86.014,
    "l": 71.961
  },
  "oklch": {
    "l": 0.90511,
    "c": 0.12581,
    "h": 98.6
  },
  "luminance": 0.74668
}

Semantic roles & 50–950 ramp

primary
#F5E17A
secondary
#435AD0
accent
#27E303
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#18160F
muted
#868480

Preview Lab

Preview with #F5E17A

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

Preview Lab → · Contrast checker → · Palette generator →

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