#D5B238#D5B238

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

Color values

HEX#D5B238
RGBrgb(213, 178, 56)
HSLhsl(47, 65%, 53%)
HSVhsv(47, 74%, 84%)
CMYKcmyk(0%, 16.4%, 73.7%, 16.5%)
CIE-LABlab(73.72, 0.28, 63.42)
CIE-LCHlch(73.72, 63.42, 89.75°)
OKLaboklab(77.37% -0.0057 0.1399)
OKLCHoklch(77.37% 0.14 92.3)
XYZxyz(44.0772, 46.2751, 10.3510)
Luminance0.4627 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5B238 #385BD5
analogous
#D56338 #D5B238 #AAD538
triadic
#D5B238 #38D5B2 #B238D5
tetradic
#D5B238 #38D563 #385BD5 #D538AA
square
#D5B238 #38D563 #385BD5 #D538AA
split-complementary
#D5B238 #38AAD5 #6338D5
monochromatic
#79641A #AC8D24 #D5B238 #E0C66B #EAD99D

Accessibility & contrast

On white

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

On black

10.25
#D5B238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5B238
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5B238#FFFFFF#000000##000000
##D5B2381.002.0510.2510.25
#FFFFFF2.051.0021.0021.00
#00000010.2521.001.001.00
##00000010.2521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d5b238;
/* rgb */ color: rgb(213, 178, 56);
/* oklch */ color: oklch(77.4% 0.140 92.3);
Tailwind
colors: {
  custom: {
    50: '#e6c877',
    500: '#d5b238',
    950: '#000000',
  },
}
SCSS
$custom: #d5b238;
$custom-light: #e6c877;
$custom-dark: #000000;
JSON
{
  "hex": "#d5b238",
  "rgb": {
    "r": 213,
    "g": 178,
    "b": 56
  },
  "hsl": {
    "h": 46.624,
    "s": 65.145,
    "l": 52.745
  },
  "oklch": {
    "l": 0.77367,
    "c": 0.13999,
    "h": 92.3
  },
  "luminance": 0.46272
}

Semantic roles & 50–950 ramp

primary
#D5B238
secondary
#92A2D6
accent
#65E840
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#171309
muted
#85827B

Preview Lab

Preview with #D5B238

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

Preview Lab → · Contrast checker → · Palette generator →

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