#F5DC5C#F5DC5C

#F5DC5C is a very light, vivid yellow. Relative luminance 0.714; OKLCH L 89.2% C 0.148 H 98.2°. Best body text is #000000 at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#F5DC5C
RGBrgb(245, 220, 92)
HSLhsl(50, 88%, 66%)
HSVhsv(50, 62%, 96%)
CMYKcmyk(0%, 10.2%, 62.4%, 3.9%)
CIE-LABlab(87.67, -5.91, 64.17)
CIE-LCHlch(87.67, 64.44, 95.26°)
OKLaboklab(89.17% -0.0212 0.1464)
OKLCHoklch(89.17% 0.148 98.2)
XYZxyz(65.1839, 71.3746, 20.4663)
Luminance0.7137 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5DC5C #5C75F5
analogous
#F58F5C #F5DC5C #C1F55C
triadic
#F5DC5C #5CF5DC #DC5CF5
tetradic
#F5DC5C #5CF58F #5C75F5 #F55CC1
square
#F5DC5C #5CF58F #5C75F5 #F55CC1
split-complementary
#F5DC5C #5CC1F5 #8F5CF5
monochromatic
#CAAB0C #F1D022 #F5DC5C #F9E896 #FCF5CF

Accessibility & contrast

On white

1.37
#F5DC5C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.27
#F5DC5C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5DC5C
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5DC5C#FFFFFF#000000##000000
##F5DC5C1.001.3715.2715.27
#FFFFFF1.371.0021.0021.00
#00000015.2721.001.001.00
##00000015.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0D74D
Deuteranopia (green-blind)
#F7E063
Tritanopia (blue-blind)
#FFCDC1
Achromatopsia (no color)
#DCDCDC

Design tokens & code

CSS
--color: #f5dc5c;
/* rgb */ color: rgb(245, 220, 92);
/* oklch */ color: oklch(89.2% 0.148 98.2);
Tailwind
colors: {
  custom: {
    50: '#fce68f',
    500: '#f5dc5c',
    950: '#000000',
  },
}
SCSS
$custom: #f5dc5c;
$custom-light: #fce68f;
$custom-dark: #000000;
JSON
{
  "hex": "#f5dc5c",
  "rgb": {
    "r": 245,
    "g": 220,
    "b": 92
  },
  "hsl": {
    "h": 50.196,
    "s": 88.439,
    "l": 66.078
  },
  "oklch": {
    "l": 0.89169,
    "c": 0.14793,
    "h": 98.2
  },
  "luminance": 0.71372
}

Semantic roles & 50–950 ramp

primary
#F5DC5C
secondary
#2F48C6
accent
#26E500
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F5DC5C

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

Preview Lab → · Contrast checker → · Palette generator →

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