#F5E172#F5E172

#F5E172 is a very light, vivid yellow. Relative luminance 0.745; OKLCH L 90.4% C 0.133 H 99.3°. Best body text is #000000 at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#F5E172
RGBrgb(245, 225, 114)
HSLhsl(51, 87%, 70%)
HSVhsv(51, 53%, 96%)
CMYKcmyk(0%, 8.2%, 53.5%, 3.9%)
CIE-LABlab(89.15, -6.87, 56.06)
CIE-LCHlch(89.15, 56.48, 96.99°)
OKLaboklab(90.41% -0.0215 0.1316)
OKLCHoklch(90.41% 0.133 99.3)
XYZxyz(67.6210, 74.4804, 26.7306)
Luminance0.7448 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E172 #7286F5
analogous
#F5A072 #F5E172 #C7F572
triadic
#F5E172 #72F5E1 #E172F5
tetradic
#F5E172 #72F5A0 #7286F5 #F572C7
square
#F5E172 #72F5A0 #7286F5 #F572C7
split-complementary
#F5E172 #72C7F5 #A072F5
monochromatic
#DDBE10 #F1D539 #F5E172 #F9EDAB #FDF9E2

Accessibility & contrast

On white

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

On black

15.90
#F5E172 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E172
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E172#FFFFFF#000000##000000
##F5E1721.001.3215.9015.90
#FFFFFF1.321.0021.0021.00
#00000015.9021.001.001.00
##00000015.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3DC68
Deuteranopia (green-blind)
#F9E377
Tritanopia (blue-blind)
#FFD3C8
Achromatopsia (no color)
#E0E0E0

Design tokens & code

CSS
--color: #f5e172;
/* rgb */ color: rgb(245, 225, 114);
/* oklch */ color: oklch(90.4% 0.133 99.3);
Tailwind
colors: {
  custom: {
    50: '#fbea9d',
    500: '#f5e172',
    950: '#000000',
  },
}
SCSS
$custom: #f5e172;
$custom-light: #fbea9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e172",
  "rgb": {
    "r": 245,
    "g": 225,
    "b": 114
  },
  "hsl": {
    "h": 50.84,
    "s": 86.755,
    "l": 70.392
  },
  "oklch": {
    "l": 0.90411,
    "c": 0.13337,
    "h": 99.3
  },
  "luminance": 0.74478
}

Semantic roles & 50–950 ramp

primary
#F5E172
secondary
#3C52CF
accent
#25E302
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F5E172

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

Preview Lab → · Contrast checker → · Palette generator →

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