#D4CF28#D4CF28

#D4CF28 is a very light, vivid yellow. Relative luminance 0.588; OKLCH L 83.2% C 0.170 H 107.7°. Best body text is #000000 at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#D4CF28
RGBrgb(212, 207, 40)
HSLhsl(58, 68%, 49%)
HSVhsv(58, 81%, 83%)
CMYKcmyk(0%, 2.4%, 81.1%, 16.9%)
CIE-LABlab(81.17, -15.61, 75.16)
CIE-LCHlch(81.17, 76.77, 101.73°)
OKLaboklab(83.23% -0.0518 0.1621)
OKLCHoklch(83.23% 0.17 107.7)
XYZxyz(49.8493, 58.7777, 10.7265)
Luminance0.5878 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4CF28 #282DD4
analogous
#D47928 #D4CF28 #83D428
triadic
#D4CF28 #28D4CF #CF28D4
tetradic
#D4CF28 #28D479 #282DD4 #D42883
square
#D4CF28 #28D479 #282DD4 #D42883
split-complementary
#D4CF28 #2883D4 #7928D4
monochromatic
#6D6A15 #A19D1E #D4CF28 #E0DC59 #E9E78D

Accessibility & contrast

On white

1.65
#D4CF28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.76
#D4CF28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4CF28
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4CF28#FFFFFF#000000##000000
##D4CF281.001.6512.7612.76
#FFFFFF1.651.0021.0021.00
#00000012.7621.001.001.00
##00000012.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C700
Deuteranopia (green-blind)
#E4CC38
Tritanopia (blue-blind)
#E4C1B1
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #d4cf28;
/* rgb */ color: rgb(212, 207, 40);
/* oklch */ color: oklch(83.2% 0.170 107.7);
Tailwind
colors: {
  custom: {
    50: '#e6dd73',
    500: '#d4cf28',
    950: '#000000',
  },
}
SCSS
$custom: #d4cf28;
$custom-light: #e6dd73;
$custom-dark: #000000;
JSON
{
  "hex": "#d4cf28",
  "rgb": {
    "r": 212,
    "g": 207,
    "b": 40
  },
  "hsl": {
    "h": 58.256,
    "s": 68.254,
    "l": 49.412
  },
  "oklch": {
    "l": 0.83232,
    "c": 0.17013,
    "h": 107.7
  },
  "luminance": 0.58776
}

Semantic roles & 50–950 ramp

primary
#D4CF28
secondary
#2A2C76
accent
#42EB3D
background
#FFFEFB
surface
#FEFCF1
border
#D6D5CB
text
#171509
muted
#85847D

Preview Lab

Preview with #D4CF28

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

Preview Lab → · Contrast checker → · Palette generator →

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