#F5DE7B#F5DE7B

#F5DE7B is a very light, vivid yellow. Relative luminance 0.731; OKLCH L 89.9% C 0.122 H 96.6°. Best body text is #000000 at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#F5DE7B
RGBrgb(245, 222, 123)
HSLhsl(49, 86%, 72%)
HSVhsv(49, 50%, 96%)
CMYKcmyk(0%, 9.4%, 49.8%, 3.9%)
CIE-LABlab(88.49, -4.61, 51.04)
CIE-LCHlch(88.49, 51.25, 95.16°)
OKLaboklab(89.92% -0.014 0.1215)
OKLCHoklch(89.92% 0.122 96.6)
XYZxyz(67.3548, 73.0878, 29.2945)
Luminance0.7308 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5DE7B #7B92F5
analogous
#F5A17B #F5DE7B #CFF57B
triadic
#F5DE7B #7BF5DE #DE7BF5
tetradic
#F5DE7B #7BF5A1 #7B92F5 #F57BCF
square
#F5DE7B #7BF5A1 #7B92F5 #F57BCF
split-complementary
#F5DE7B #7BCFF5 #A17BF5
monochromatic
#E4BD11 #F1D042 #F5DE7B #F9ECB4 #FDF8E3

Accessibility & contrast

On white

1.34
#F5DE7B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.62
#F5DE7B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5DE7B
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5DE7B#FFFFFF#000000##000000
##F5DE7B1.001.3415.6215.62
#FFFFFF1.341.0021.0021.00
#00000015.6221.001.001.00
##00000015.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0DA72
Deuteranopia (green-blind)
#F6E17F
Tritanopia (blue-blind)
#FFD1C7
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #f5de7b;
/* rgb */ color: rgb(245, 222, 123);
/* oklch */ color: oklch(89.9% 0.122 96.6);
Tailwind
colors: {
  custom: {
    50: '#fbe8a3',
    500: '#f5de7b',
    950: '#000000',
  },
}
SCSS
$custom: #f5de7b;
$custom-light: #fbe8a3;
$custom-dark: #000000;
JSON
{
  "hex": "#f5de7b",
  "rgb": {
    "r": 245,
    "g": 222,
    "b": 123
  },
  "hsl": {
    "h": 48.689,
    "s": 85.915,
    "l": 72.157
  },
  "oklch": {
    "l": 0.89922,
    "c": 0.12226,
    "h": 96.6
  },
  "luminance": 0.73085
}

Semantic roles & 50–950 ramp

primary
#F5DE7B
secondary
#445ED0
accent
#2DE203
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#18160F
muted
#868480

Preview Lab

Preview with #F5DE7B

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

Preview Lab → · Contrast checker → · Palette generator →

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