#D2B338#D2B338

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

Color values

HEX#D2B338
RGBrgb(210, 179, 56)
HSLhsl(48, 63%, 52%)
HSVhsv(48, 73%, 82%)
CMYKcmyk(0%, 14.8%, 73.3%, 17.6%)
CIE-LABlab(73.69, -1.55, 63.29)
CIE-LCHlch(73.69, 63.31, 91.40°)
OKLaboklab(77.28% -0.0107 0.1397)
OKLCHoklch(77.28% 0.14 94.4)
XYZxyz(43.4146, 46.2298, 10.3771)
Luminance0.4623 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2B338 #3857D2
analogous
#D26638 #D2B338 #A4D238
triadic
#D2B338 #38D2B3 #B338D2
tetradic
#D2B338 #38D266 #3857D2 #D238A4
square
#D2B338 #38D266 #3857D2 #D238A4
split-complementary
#D2B338 #38A4D2 #6638D2
monochromatic
#75631A #A78D26 #D2B338 #DDC66A #E9D99C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D2B338#FFFFFF#000000##000000
##D2B3381.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)
#C6B024
Deuteranopia (green-blind)
#CEB93F
Tritanopia (blue-blind)
#E3A59B
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #d2b338;
/* rgb */ color: rgb(210, 179, 56);
/* oklch */ color: oklch(77.3% 0.140 94.4);
Tailwind
colors: {
  custom: {
    50: '#e4c977',
    500: '#d2b338',
    950: '#000000',
  },
}
SCSS
$custom: #d2b338;
$custom-light: #e4c977;
$custom-dark: #000000;
JSON
{
  "hex": "#d2b338",
  "rgb": {
    "r": 210,
    "g": 179,
    "b": 56
  },
  "hsl": {
    "h": 47.922,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.77277,
    "c": 0.14014,
    "h": 94.4
  },
  "luminance": 0.46227
}

Semantic roles & 50–950 ramp

primary
#D2B338
secondary
#919FD5
accent
#63E642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #D2B338

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

Preview Lab → · Contrast checker → · Palette generator →

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