#D8A42F#D8A42F

#D8A42F is a light, vivid orange. Relative luminance 0.414; OKLCH L 74.8% C 0.140 H 82.9°. Best body text is #000000 at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#D8A42F
RGBrgb(216, 164, 47)
HSLhsl(42, 68%, 52%)
HSVhsv(42, 78%, 85%)
CMYKcmyk(0%, 24.1%, 78.2%, 15.3%)
CIE-LABlab(70.43, 8.64, 63.69)
CIE-LCHlch(70.43, 64.27, 82.27°)
OKLaboklab(74.82% 0.0172 0.1385)
OKLCHoklch(74.82% 0.14 82.9)
XYZxyz(42.1103, 41.3582, 8.4538)
Luminance0.4135 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8A42F #2F63D8
analogous
#D8502F #D8A42F #B8D82F
triadic
#D8A42F #2FD8A4 #A42FD8
tetradic
#D8A42F #2FD850 #2F63D8 #D82FB8
square
#D8A42F #2FD850 #2F63D8 #D82FB8
split-complementary
#D8A42F #2FB8D8 #502FD8
monochromatic
#765916 #AA7F20 #D8A42F #E2BB63 #EBD196

Accessibility & contrast

On white

2.27
#D8A42F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.27
#D8A42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8A42F
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8A42F#FFFFFF#000000##000000
##D8A42F1.002.279.279.27
#FFFFFF2.271.0021.0021.00
#0000009.2721.001.001.00
##0000009.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA418
Deuteranopia (green-blind)
#C6B235
Tritanopia (blue-blind)
#EB948E
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #d8a42f;
/* rgb */ color: rgb(216, 164, 47);
/* oklch */ color: oklch(74.8% 0.140 82.9);
Tailwind
colors: {
  custom: {
    50: '#e9be71',
    500: '#d8a42f',
    950: '#000000',
  },
}
SCSS
$custom: #d8a42f;
$custom-light: #e9be71;
$custom-dark: #000000;
JSON
{
  "hex": "#d8a42f",
  "rgb": {
    "r": 216,
    "g": 164,
    "b": 47
  },
  "hsl": {
    "h": 41.538,
    "s": 68.421,
    "l": 51.569
  },
  "oklch": {
    "l": 0.74824,
    "c": 0.13954,
    "h": 82.9
  },
  "luminance": 0.41355
}

Semantic roles & 50–950 ramp

primary
#D8A42F
secondary
#8CA3D7
accent
#72EB3D
background
#FFFBF7
surface
#FEF6ED
border
#D6D0C8
text
#171208
muted
#85817B

Preview Lab

Preview with #D8A42F

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

Preview Lab → · Contrast checker → · Palette generator →

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