#F5DF5F#F5DF5F

#F5DF5F is a very light, vivid yellow. Relative luminance 0.730; OKLCH L 89.8% C 0.148 H 99.6°. Best body text is #000000 at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#F5DF5F
RGBrgb(245, 223, 95)
HSLhsl(51, 88%, 67%)
HSVhsv(51, 61%, 96%)
CMYKcmyk(0%, 9%, 61.2%, 3.9%)
CIE-LABlab(88.46, -7.23, 63.75)
CIE-LCHlch(88.46, 64.16, 96.47°)
OKLaboklab(89.8% -0.0246 0.1459)
OKLCHoklch(89.8% 0.148 99.6)
XYZxyz(66.1121, 73.0169, 21.4355)
Luminance0.7301 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5DF5F #5F75F5
analogous
#F5945F #F5DF5F #C0F55F
triadic
#F5DF5F #5FF5DF #DF5FF5
tetradic
#F5DF5F #5FF594 #5F75F5 #F55FC0
square
#F5DF5F #5FF594 #5F75F5 #F55FC0
split-complementary
#F5DF5F #5FC0F5 #945FF5
monochromatic
#CDB10D #F1D325 #F5DF5F #F9EB99 #FCF6D2

Accessibility & contrast

On white

1.35
#F5DF5F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.60
#F5DF5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5DF5F
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5DF5F#FFFFFF#000000##000000
##F5DF5F1.001.3515.6015.60
#FFFFFF1.351.0021.0021.00
#00000015.6021.001.001.00
##00000015.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3D951
Deuteranopia (green-blind)
#F9E266
Tritanopia (blue-blind)
#FFD0C4
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #f5df5f;
/* rgb */ color: rgb(245, 223, 95);
/* oklch */ color: oklch(89.8% 0.148 99.6);
Tailwind
colors: {
  custom: {
    50: '#fce891',
    500: '#f5df5f',
    950: '#000000',
  },
}
SCSS
$custom: #f5df5f;
$custom-light: #fce891;
$custom-dark: #000000;
JSON
{
  "hex": "#f5df5f",
  "rgb": {
    "r": 245,
    "g": 223,
    "b": 95
  },
  "hsl": {
    "h": 51.2,
    "s": 88.235,
    "l": 66.667
  },
  "oklch": {
    "l": 0.89802,
    "c": 0.14798,
    "h": 99.6
  },
  "luminance": 0.73014
}

Semantic roles & 50–950 ramp

primary
#F5DF5F
secondary
#2F46C9
accent
#22E501
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18160D
muted
#86847F

Preview Lab

Preview with #F5DF5F

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

Preview Lab → · Contrast checker → · Palette generator →

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