#FFDF40#FFDF40

#FFDF40 is a very light, vivid yellow. Relative luminance 0.744; OKLCH L 90.5% C 0.169 H 97.2°. Best body text is #000000 at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#FFDF40
RGBrgb(255, 223, 64)
HSLhsl(50, 100%, 63%)
HSVhsv(50, 75%, 100%)
CMYKcmyk(0%, 12.5%, 74.9%, 0%)
CIE-LABlab(89.12, -4.68, 76.58)
CIE-LCHlch(89.12, 76.72, 93.49°)
OKLaboklab(90.46% -0.0212 0.1677)
OKLCHoklch(90.46% 0.169 97.2)
XYZxyz(68.5566, 74.4092, 15.6008)
Luminance0.7441 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFDF40 #4060FF
analogous
#FF8040 #FFDF40 #BFFF40
triadic
#FFDF40 #40FFDF #DF40FF
tetradic
#FFDF40 #40FF80 #4060FF #FF40BF
square
#FFDF40 #40FF80 #4060FF #FF40BF
split-complementary
#FFDF40 #40BFFF #8040FF
monochromatic
#C5A400 #FFD503 #FFDF40 #FFE97D #FFF4BA

Accessibility & contrast

On white

1.32
#FFDF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.88
#FFDF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFDF40
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFDF40#FFFFFF#000000##000000
##FFDF401.001.3215.8815.88
#FFFFFF1.321.0021.0021.00
#00000015.8821.001.001.00
##00000015.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#F6DA20
Deuteranopia (green-blind)
#FEE44B
Tritanopia (blue-blind)
#FFCEC1
Achromatopsia (no color)
#E0E0E0

Design tokens & code

CSS
--color: #ffdf40;
/* rgb */ color: rgb(255, 223, 64);
/* oklch */ color: oklch(90.5% 0.169 97.2);
Tailwind
colors: {
  custom: {
    50: '#ffe880',
    500: '#ffdf40',
    950: '#000000',
  },
}
SCSS
$custom: #ffdf40;
$custom-light: #ffe880;
$custom-dark: #000000;
JSON
{
  "hex": "#ffdf40",
  "rgb": {
    "r": 255,
    "g": 223,
    "b": 64
  },
  "hsl": {
    "h": 49.948,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.90463,
    "c": 0.169,
    "h": 97.2
  },
  "luminance": 0.74406
}

Semantic roles & 50–950 ramp

primary
#FFDF40
secondary
#223DC1
accent
#26E600
background
#FFFEFB
surface
#FFFCF2
border
#D7D5CC
text
#19160B
muted
#87847E

Preview Lab

Preview with #FFDF40

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

Preview Lab → · Contrast checker → · Palette generator →

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