#D7B23E#D7B23E

#D7B23E is a light, vivid yellow. Relative luminance 0.466; OKLCH L 77.6% C 0.137 H 90.8°. Best body text is #000000 at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#D7B23E
RGBrgb(215, 178, 62)
HSLhsl(45, 66%, 54%)
HSVhsv(45, 71%, 84%)
CMYKcmyk(0%, 17.2%, 71.2%, 15.7%)
CIE-LABlab(73.96, 1.42, 61.40)
CIE-LCHlch(73.96, 61.41, 88.68°)
OKLaboklab(77.61% -0.0018 0.1366)
OKLCHoklch(77.61% 0.137 90.8)
XYZxyz(44.8167, 46.6384, 11.1981)
Luminance0.4664 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7B23E #3E63D7
analogous
#D7663E #D7B23E #B0D73E
triadic
#D7B23E #3ED7B2 #B23ED7
tetradic
#D7B23E #3ED766 #3E63D7 #D73EB0
square
#D7B23E #3ED766 #3E63D7 #D73EB0
split-complementary
#D7B23E #3EB0D7 #663ED7
monochromatic
#80681B #B39025 #D7B23E #E2C671 #ECDAA3

Accessibility & contrast

On white

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

On black

10.33
#D7B23E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7B23E
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7B23E#FFFFFF#000000##000000
##D7B23E1.002.0310.3310.33
#FFFFFF2.031.0021.0021.00
#00000010.3321.001.001.00
##00000010.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B02D
Deuteranopia (green-blind)
#CFBA44
Tritanopia (blue-blind)
#E8A39B
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #d7b23e;
/* rgb */ color: rgb(215, 178, 62);
/* oklch */ color: oklch(77.6% 0.137 90.8);
Tailwind
colors: {
  custom: {
    50: '#e7c87a',
    500: '#d7b23e',
    950: '#000000',
  },
}
SCSS
$custom: #d7b23e;
$custom-light: #e7c87a;
$custom-dark: #000000;
JSON
{
  "hex": "#d7b23e",
  "rgb": {
    "r": 215,
    "g": 178,
    "b": 62
  },
  "hsl": {
    "h": 45.49,
    "s": 65.665,
    "l": 54.314
  },
  "oklch": {
    "l": 0.7761,
    "c": 0.13665,
    "h": 90.8
  },
  "luminance": 0.46636
}

Semantic roles & 50–950 ramp

primary
#D7B23E
secondary
#98A8D9
accent
#68E93F
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#17130A
muted
#85827C

Preview Lab

Preview with #D7B23E

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

Preview Lab → · Contrast checker → · Palette generator →

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