#D7AF34#D7AF34

#D7AF34 is a light, vivid yellow. Relative luminance 0.454; OKLCH L 76.9% C 0.141 H 89.9°. Best body text is #000000 at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#D7AF34
RGBrgb(215, 175, 52)
HSLhsl(45, 67%, 52%)
HSVhsv(45, 76%, 84%)
CMYKcmyk(0%, 18.6%, 75.8%, 15.7%)
CIE-LABlab(73.13, 2.55, 64.38)
CIE-LCHlch(73.13, 64.43, 87.73°)
OKLaboklab(76.93% 0.0003 0.1411)
OKLCHoklch(76.93% 0.141 89.9)
XYZxyz(43.9767, 45.3578, 9.6868)
Luminance0.4536 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7AF34 #345CD7
analogous
#D75E34 #D7AF34 #AED734
triadic
#D7AF34 #34D7AF #AF34D7
tetradic
#D7AF34 #34D75E #345CD7 #D734AE
square
#D7AF34 #34D75E #345CD7 #D734AE
split-complementary
#D7AF34 #34AED7 #5E34D7
monochromatic
#796118 #AC8A22 #D7AF34 #E1C367 #EBD79A

Accessibility & contrast

On white

2.09
#D7AF34 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.07
#D7AF34 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7AF34
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7AF34#FFFFFF#000000##000000
##D7AF341.002.0910.0710.07
#FFFFFF2.091.0021.0021.00
#00000010.0721.001.001.00
##00000010.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD1E
Deuteranopia (green-blind)
#CDB83B
Tritanopia (blue-blind)
#E9A097
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #d7af34;
/* rgb */ color: rgb(215, 175, 52);
/* oklch */ color: oklch(76.9% 0.141 89.9);
Tailwind
colors: {
  custom: {
    50: '#e8c674',
    500: '#d7af34',
    950: '#000000',
  },
}
SCSS
$custom: #d7af34;
$custom-light: #e8c674;
$custom-dark: #000000;
JSON
{
  "hex": "#d7af34",
  "rgb": {
    "r": 215,
    "g": 175,
    "b": 52
  },
  "hsl": {
    "h": 45.276,
    "s": 67.078,
    "l": 52.353
  },
  "oklch": {
    "l": 0.76934,
    "c": 0.14105,
    "h": 89.9
  },
  "luminance": 0.45355
}

Semantic roles & 50–950 ramp

primary
#D7AF34
secondary
#90A1D7
accent
#68EA3E
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#171209
muted
#85817B

Preview Lab

Preview with #D7AF34

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

Preview Lab → · Contrast checker → · Palette generator →

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