#D7B138#D7B138

#D7B138 is a light, vivid yellow. Relative luminance 0.462; OKLCH L 77.4% C 0.140 H 90.7°. Best body text is #000000 at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#D7B138
RGBrgb(215, 177, 56)
HSLhsl(46, 67%, 53%)
HSVhsv(46, 74%, 84%)
CMYKcmyk(0%, 17.7%, 74%, 15.7%)
CIE-LABlab(73.66, 1.67, 63.42)
CIE-LCHlch(73.66, 63.45, 88.49°)
OKLaboklab(77.36% -0.0018 0.1398)
OKLCHoklch(77.36% 0.14 90.7)
XYZxyz(44.4628, 46.1796, 10.3123)
Luminance0.4618 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7B138 #385ED7
analogous
#D76138 #D7B138 #AED738
triadic
#D7B138 #38D7B1 #B138D7
tetradic
#D7B138 #38D761 #385ED7 #D738AE
square
#D7B138 #38D761 #385ED7 #D738AE
split-complementary
#D7B138 #38AED7 #6138D7
monochromatic
#7C6419 #AF8D23 #D7B138 #E1C56B #EBD99E

Accessibility & contrast

On white

2.05
#D7B138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.24
#D7B138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7B138
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7B138#FFFFFF#000000##000000
##D7B1381.002.0510.2410.24
#FFFFFF2.051.0021.0021.00
#00000010.2421.001.001.00
##00000010.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AF24
Deuteranopia (green-blind)
#CEB93F
Tritanopia (blue-blind)
#E9A299
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #d7b138;
/* rgb */ color: rgb(215, 177, 56);
/* oklch */ color: oklch(77.4% 0.140 90.7);
Tailwind
colors: {
  custom: {
    50: '#e8c777',
    500: '#d7b138',
    950: '#000000',
  },
}
SCSS
$custom: #d7b138;
$custom-light: #e8c777;
$custom-dark: #000000;
JSON
{
  "hex": "#d7b138",
  "rgb": {
    "r": 215,
    "g": 177,
    "b": 56
  },
  "hsl": {
    "h": 45.66,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.77364,
    "c": 0.13982,
    "h": 90.7
  },
  "luminance": 0.46177
}

Semantic roles & 50–950 ramp

primary
#D7B138
secondary
#93A4D8
accent
#67E93E
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#171309
muted
#85827B

Preview Lab

Preview with #D7B138

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

Preview Lab → · Contrast checker → · Palette generator →

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