#F5DF7A#F5DF7A

#F5DF7A is a very light, vivid yellow. Relative luminance 0.736; OKLCH L 90.1% C 0.124 H 97.3°. Best body text is #000000 at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#F5DF7A
RGBrgb(245, 223, 122)
HSLhsl(49, 86%, 72%)
HSVhsv(49, 50%, 96%)
CMYKcmyk(0%, 9%, 50.2%, 3.9%)
CIE-LABlab(88.73, -5.20, 51.81)
CIE-LCHlch(88.73, 52.07, 95.74°)
OKLaboklab(90.11% -0.0158 0.1231)
OKLCHoklch(90.11% 0.124 97.3)
XYZxyz(67.5589, 73.5956, 29.0553)
Luminance0.7359 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5DF7A #7A90F5
analogous
#F5A27A #F5DF7A #CEF57A
triadic
#F5DF7A #7AF5DF #DF7AF5
tetradic
#F5DF7A #7AF5A2 #7A90F5 #F57ACE
square
#F5DF7A #7AF5A2 #7A90F5 #F57ACE
split-complementary
#F5DF7A #7ACEF5 #A27AF5
monochromatic
#E3BE11 #F1D141 #F5DF7A #F9EDB3 #FDF8E3

Accessibility & contrast

On white

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

On black

15.72
#F5DF7A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5DF7A
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5DF7A#FFFFFF#000000##000000
##F5DF7A1.001.3415.7215.72
#FFFFFF1.341.0021.0021.00
#00000015.7221.001.001.00
##00000015.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1DA71
Deuteranopia (green-blind)
#F7E27E
Tritanopia (blue-blind)
#FFD2C7
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f5df7a;
/* rgb */ color: rgb(245, 223, 122);
/* oklch */ color: oklch(90.1% 0.124 97.3);
Tailwind
colors: {
  custom: {
    50: '#fbe8a2',
    500: '#f5df7a',
    950: '#000000',
  },
}
SCSS
$custom: #f5df7a;
$custom-light: #fbe8a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f5df7a",
  "rgb": {
    "r": 245,
    "g": 223,
    "b": 122
  },
  "hsl": {
    "h": 49.268,
    "s": 86.014,
    "l": 71.961
  },
  "oklch": {
    "l": 0.90109,
    "c": 0.12409,
    "h": 97.3
  },
  "luminance": 0.73593
}

Semantic roles & 50–950 ramp

primary
#F5DF7A
secondary
#435CD0
accent
#2BE303
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#18160F
muted
#868480

Preview Lab

Preview with #F5DF7A

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

Preview Lab → · Contrast checker → · Palette generator →

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