#D4AF2D#D4AF2D

#D4AF2D is a light, vivid yellow. Relative luminance 0.448; OKLCH L 76.6% C 0.144 H 91.9°. Best body text is #000000 at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#D4AF2D
RGBrgb(212, 175, 45)
HSLhsl(47, 66%, 50%)
HSVhsv(47, 79%, 83%)
CMYKcmyk(0%, 17.5%, 78.8%, 16.9%)
CIE-LABlab(72.79, 0.98, 66.37)
CIE-LCHlch(72.79, 66.38, 89.15°)
OKLaboklab(76.59% -0.0047 0.144)
OKLCHoklch(76.59% 0.144 91.9)
XYZxyz(42.9575, 44.8491, 8.8763)
Luminance0.4485 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4AF2D #2D52D4
analogous
#D45C2D #D4AF2D #A5D42D
triadic
#D4AF2D #2DD4AF #AF2DD4
tetradic
#D4AF2D #2DD45C #2D52D4 #D42DA5
square
#D4AF2D #2DD45C #2D52D4 #D42DA5
split-complementary
#D4AF2D #2DA5D4 #5C2DD4
monochromatic
#705C17 #A38621 #D4AF2D #DEC260 #E9D693

Accessibility & contrast

On white

2.11
#D4AF2D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.97
#D4AF2D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4AF2D
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4AF2D#FFFFFF#000000##000000
##D4AF2D1.002.119.979.97
#FFFFFF2.111.0021.0021.00
#0000009.9721.001.001.00
##0000009.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AC0E
Deuteranopia (green-blind)
#CCB735
Tritanopia (blue-blind)
#E6A097
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #d4af2d;
/* rgb */ color: rgb(212, 175, 45);
/* oklch */ color: oklch(76.6% 0.144 91.9);
Tailwind
colors: {
  custom: {
    50: '#e6c671',
    500: '#d4af2d',
    950: '#000000',
  },
}
SCSS
$custom: #d4af2d;
$custom-light: #e6c671;
$custom-dark: #000000;
JSON
{
  "hex": "#d4af2d",
  "rgb": {
    "r": 212,
    "g": 175,
    "b": 45
  },
  "hsl": {
    "h": 46.707,
    "s": 66.008,
    "l": 50.392
  },
  "oklch": {
    "l": 0.7659,
    "c": 0.1441,
    "h": 91.9
  },
  "luminance": 0.44846
}

Semantic roles & 50–950 ramp

primary
#D4AF2D
secondary
#899AD4
accent
#65E93F
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#171208
muted
#85817B

Preview Lab

Preview with #D4AF2D

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

Preview Lab → · Contrast checker → · Palette generator →

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