#F5D54C#F5D54C

#F5D54C is a very light, vivid yellow. Relative luminance 0.675; OKLCH L 87.6% C 0.154 H 95.7°. Best body text is #000000 at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#F5D54C
RGBrgb(245, 213, 76)
HSLhsl(49, 89%, 63%)
HSVhsv(49, 69%, 96%)
CMYKcmyk(0%, 13.1%, 69%, 3.9%)
CIE-LABlab(85.77, -3.27, 68.70)
CIE-LCHlch(85.77, 68.77, 92.72°)
OKLaboklab(87.63% -0.0154 0.1535)
OKLCHoklch(87.63% 0.154 95.7)
XYZxyz(62.7581, 67.5261, 16.5643)
Luminance0.6752 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5D54C #4C6CF5
analogous
#F5804C #F5D54C #C0F54C
triadic
#F5D54C #4CF5D5 #D54CF5
tetradic
#F5D54C #4CF580 #4C6CF5 #F54CC0
square
#F5D54C #4CF580 #4C6CF5 #F54CC0
split-complementary
#F5D54C #4CC0F5 #804CF5
monochromatic
#BC9A0B #F2C712 #F5D54C #F8E386 #FBF0C0

Accessibility & contrast

On white

1.45
#F5D54C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.50
#F5D54C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5D54C
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5D54C#FFFFFF#000000##000000
##F5D54C1.001.4514.5014.50
#FFFFFF1.451.0021.0021.00
#00000014.5021.001.001.00
##00000014.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD139
Deuteranopia (green-blind)
#F2DB54
Tritanopia (blue-blind)
#FFC5B9
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #f5d54c;
/* rgb */ color: rgb(245, 213, 76);
/* oklch */ color: oklch(87.6% 0.154 95.7);
Tailwind
colors: {
  custom: {
    50: '#fce185',
    500: '#f5d54c',
    950: '#000000',
  },
}
SCSS
$custom: #f5d54c;
$custom-light: #fce185;
$custom-dark: #000000;
JSON
{
  "hex": "#f5d54c",
  "rgb": {
    "r": 245,
    "g": 213,
    "b": 76
  },
  "hsl": {
    "h": 48.639,
    "s": 89.418,
    "l": 62.941
  },
  "oklch": {
    "l": 0.87626,
    "c": 0.15427,
    "h": 95.7
  },
  "luminance": 0.67523
}

Semantic roles & 50–950 ramp

primary
#F5D54C
secondary
#2B46BA
accent
#2BE600
background
#FFFEFC
surface
#FFFCF3
border
#D7D5CD
text
#18150C
muted
#86847F

Preview Lab

Preview with #F5D54C

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

Preview Lab → · Contrast checker → · Palette generator →

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