#DFAF40#DFAF40

#DFAF40 is a light, vivid orange. Relative luminance 0.467; OKLCH L 77.8% C 0.136 H 84.7°. Best body text is #000000 at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#DFAF40
RGBrgb(223, 175, 64)
HSLhsl(42, 71%, 56%)
HSVhsv(42, 71%, 87%)
CMYKcmyk(0%, 21.5%, 71.3%, 12.5%)
CIE-LABlab(74.01, 6.54, 60.90)
CIE-LCHlch(74.01, 61.25, 83.87°)
OKLaboklab(77.84% 0.0127 0.1357)
OKLCHoklch(77.84% 0.136 84.7)
XYZxyz(46.6896, 46.7213, 11.4085)
Luminance0.4672 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFAF40 #4070DF
analogous
#DF6040 #DFAF40 #BFDF40
triadic
#DFAF40 #40DFAF #AF40DF
tetradic
#DFAF40 #40DF60 #4070DF #DF40BF
square
#DFAF40 #40DF60 #4070DF #DF40BF
split-complementary
#DFAF40 #40BFDF #6040DF
monochromatic
#8D6A18 #C19120 #DFAF40 #E8C574 #F1DBA9

Accessibility & contrast

On white

2.03
#DFAF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.34
#DFAF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFAF40
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFAF40#FFFFFF#000000##000000
##DFAF401.002.0310.3410.34
#FFFFFF2.031.0021.0021.00
#00000010.3421.001.001.00
##00000010.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AF31
Deuteranopia (green-blind)
#D0BB45
Tritanopia (blue-blind)
#F29F98
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #dfaf40;
/* rgb */ color: rgb(223, 175, 64);
/* oklch */ color: oklch(77.8% 0.136 84.7);
Tailwind
colors: {
  custom: {
    50: '#edc67b',
    500: '#dfaf40',
    950: '#000000',
  },
}
SCSS
$custom: #dfaf40;
$custom-light: #edc67b;
$custom-dark: #000000;
JSON
{
  "hex": "#dfaf40",
  "rgb": {
    "r": 223,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 41.887,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.77839,
    "c": 0.13625,
    "h": 84.7
  },
  "luminance": 0.46718
}

Semantic roles & 50–950 ramp

primary
#DFAF40
secondary
#9DB0DE
accent
#70EE3A
background
#FFFCF7
surface
#FEF8EE
border
#D6D1C9
text
#17130A
muted
#85827C

Preview Lab

Preview with #DFAF40

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

Preview Lab → · Contrast checker → · Palette generator →

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