#F5DC56#F5DC56

#F5DC56 is a very light, vivid yellow. Relative luminance 0.713; OKLCH L 89.1% C 0.152 H 98.6°. Best body text is #000000 at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#F5DC56
RGBrgb(245, 220, 86)
HSLhsl(51, 89%, 65%)
HSVhsv(51, 65%, 96%)
CMYKcmyk(0%, 10.2%, 64.9%, 3.9%)
CIE-LABlab(87.62, -6.27, 66.62)
CIE-LCHlch(87.62, 66.91, 95.37°)
OKLaboklab(89.11% -0.0229 0.1507)
OKLCHoklch(89.11% 0.152 98.6)
XYZxyz(64.9320, 71.2738, 19.1393)
Luminance0.7127 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5DC56 #566FF5
analogous
#F58C56 #F5DC56 #BFF556
triadic
#F5DC56 #56F5DC #DC56F5
tetradic
#F5DC56 #56F58C #566FF5 #F556BF
square
#F5DC56 #56F58C #566FF5 #F556BF
split-complementary
#F5DC56 #56BFF5 #8C56F5
monochromatic
#C5A80C #F2D01C #F5DC56 #F8E890 #FCF4CA

Accessibility & contrast

On white

1.38
#F5DC56 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.25
#F5DC56 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5DC56
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5DC56#FFFFFF#000000##000000
##F5DC561.001.3815.2515.25
#FFFFFF1.381.0021.0021.00
#00000015.2521.001.001.00
##00000015.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0D745
Deuteranopia (green-blind)
#F7DF5D
Tritanopia (blue-blind)
#FFCDC0
Achromatopsia (no color)
#DCDCDC

Design tokens & code

CSS
--color: #f5dc56;
/* rgb */ color: rgb(245, 220, 86);
/* oklch */ color: oklch(89.1% 0.152 98.6);
Tailwind
colors: {
  custom: {
    50: '#fce68c',
    500: '#f5dc56',
    950: '#000000',
  },
}
SCSS
$custom: #f5dc56;
$custom-light: #fce68c;
$custom-dark: #000000;
JSON
{
  "hex": "#f5dc56",
  "rgb": {
    "r": 245,
    "g": 220,
    "b": 86
  },
  "hsl": {
    "h": 50.566,
    "s": 88.827,
    "l": 64.902
  },
  "oklch": {
    "l": 0.89114,
    "c": 0.15244,
    "h": 98.6
  },
  "luminance": 0.71271
}

Semantic roles & 50–950 ramp

primary
#F5DC56
secondary
#2D45C2
accent
#24E500
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F5DC56

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

Preview Lab → · Contrast checker → · Palette generator →

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