#F5DC7A#F5DC7A

#F5DC7A is a very light, vivid yellow. Relative luminance 0.720; OKLCH L 89.5% C 0.122 H 95.4°. Best body text is #000000 at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#F5DC7A
RGBrgb(245, 220, 122)
HSLhsl(48, 86%, 72%)
HSVhsv(48, 50%, 96%)
CMYKcmyk(0%, 10.2%, 50.2%, 3.9%)
CIE-LABlab(87.97, -3.69, 50.89)
CIE-LCHlch(87.97, 51.03, 94.14°)
OKLaboklab(89.51% -0.0114 0.1211)
OKLCHoklch(89.51% 0.122 95.4)
XYZxyz(66.7645, 72.0068, 28.7905)
Luminance0.7200 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5DC7A #7A93F5
analogous
#F59F7A #F5DC7A #D1F57A
triadic
#F5DC7A #7AF5DC #DC7AF5
tetradic
#F5DC7A #7AF59F #7A93F5 #F57AD1
square
#F5DC7A #7AF59F #7A93F5 #F57AD1
split-complementary
#F5DC7A #7AD1F5 #9F7AF5
monochromatic
#E3B911 #F1CD41 #F5DC7A #F9EBB3 #FDF8E3

Accessibility & contrast

On white

1.36
#F5DC7A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.40
#F5DC7A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5DC7A
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5DC7A#FFFFFF#000000##000000
##F5DC7A1.001.3615.4015.40
#FFFFFF1.361.0021.0021.00
#00000015.4021.001.001.00
##00000015.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#EED872
Deuteranopia (green-blind)
#F4E07E
Tritanopia (blue-blind)
#FFCFC5
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #f5dc7a;
/* rgb */ color: rgb(245, 220, 122);
/* oklch */ color: oklch(89.5% 0.122 95.4);
Tailwind
colors: {
  custom: {
    50: '#fbe6a2',
    500: '#f5dc7a',
    950: '#000000',
  },
}
SCSS
$custom: #f5dc7a;
$custom-light: #fbe6a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f5dc7a",
  "rgb": {
    "r": 245,
    "g": 220,
    "b": 122
  },
  "hsl": {
    "h": 47.805,
    "s": 86.014,
    "l": 71.961
  },
  "oklch": {
    "l": 0.89508,
    "c": 0.12159,
    "h": 95.4
  },
  "luminance": 0.72004
}

Semantic roles & 50–950 ramp

primary
#F5DC7A
secondary
#4360D0
accent
#30E303
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150F
muted
#868480

Preview Lab

Preview with #F5DC7A

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

Preview Lab → · Contrast checker → · Palette generator →

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