#D7B038#D7B038

#D7B038 is a light, vivid yellow. Relative luminance 0.458; OKLCH L 77.2% C 0.139 H 90.1°. Best body text is #000000 at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#D7B038
RGBrgb(215, 176, 56)
HSLhsl(45, 67%, 53%)
HSVhsv(45, 74%, 84%)
CMYKcmyk(0%, 18.1%, 74%, 15.7%)
CIE-LABlab(73.41, 2.19, 63.18)
CIE-LCHlch(73.41, 63.22, 88.01°)
OKLaboklab(77.16% -0.0003 0.1393)
OKLCHoklch(77.16% 0.139 90.1)
XYZxyz(44.2660, 45.7860, 10.2467)
Luminance0.4578 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7B038 #385FD7
analogous
#D76038 #D7B038 #AED738
triadic
#D7B038 #38D7B0 #B038D7
tetradic
#D7B038 #38D760 #385FD7 #D738AE
square
#D7B038 #38D760 #385FD7 #D738AE
split-complementary
#D7B038 #38AED7 #6038D7
monochromatic
#7C6319 #AF8C23 #D7B038 #E1C46B #EBD89E

Accessibility & contrast

On white

2.07
#D7B038 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.16
#D7B038 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7B038
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7B038#FFFFFF#000000##000000
##D7B0381.002.0710.1610.16
#FFFFFF2.071.0021.0021.00
#00000010.1621.001.001.00
##00000010.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE25
Deuteranopia (green-blind)
#CEB93E
Tritanopia (blue-blind)
#E9A198
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #d7b038;
/* rgb */ color: rgb(215, 176, 56);
/* oklch */ color: oklch(77.2% 0.139 90.1);
Tailwind
colors: {
  custom: {
    50: '#e8c777',
    500: '#d7b038',
    950: '#000000',
  },
}
SCSS
$custom: #d7b038;
$custom-light: #e8c777;
$custom-dark: #000000;
JSON
{
  "hex": "#d7b038",
  "rgb": {
    "r": 215,
    "g": 176,
    "b": 56
  },
  "hsl": {
    "h": 45.283,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.77162,
    "c": 0.13928,
    "h": 90.1
  },
  "luminance": 0.45783
}

Semantic roles & 50–950 ramp

primary
#D7B038
secondary
#93A4D8
accent
#68E93E
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#171309
muted
#85827B

Preview Lab

Preview with #D7B038

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

Preview Lab → · Contrast checker → · Palette generator →

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