#D2B438#D2B438

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

Color values

HEX#D2B438
RGBrgb(210, 180, 56)
HSLhsl(48, 63%, 52%)
HSVhsv(48, 73%, 82%)
CMYKcmyk(0%, 14.3%, 73.3%, 17.6%)
CIE-LABlab(73.95, -2.07, 63.54)
CIE-LCHlch(73.95, 63.57, 91.87°)
OKLaboklab(77.48% -0.0122 0.1403)
OKLCHoklch(77.48% 0.141 95)
XYZxyz(43.6157, 46.6321, 10.4442)
Luminance0.4663 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2B438 #3856D2
analogous
#D26738 #D2B438 #A3D238
triadic
#D2B438 #38D2B4 #B438D2
tetradic
#D2B438 #38D267 #3856D2 #D238A3
square
#D2B438 #38D267 #3856D2 #D238A3
split-complementary
#D2B438 #38A3D2 #6738D2
monochromatic
#75631A #A78E26 #D2B438 #DDC76A #E9DA9C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D2B438#FFFFFF#000000##000000
##D2B4381.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)
#C7B023
Deuteranopia (green-blind)
#CEBA3F
Tritanopia (blue-blind)
#E3A69C
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #d2b438;
/* rgb */ color: rgb(210, 180, 56);
/* oklch */ color: oklch(77.5% 0.141 95.0);
Tailwind
colors: {
  custom: {
    50: '#e4ca77',
    500: '#d2b438',
    950: '#000000',
  },
}
SCSS
$custom: #d2b438;
$custom-light: #e4ca77;
$custom-dark: #000000;
JSON
{
  "hex": "#d2b438",
  "rgb": {
    "r": 210,
    "g": 180,
    "b": 56
  },
  "hsl": {
    "h": 48.312,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.77482,
    "c": 0.14079,
    "h": 95
  },
  "luminance": 0.4663
}

Semantic roles & 50–950 ramp

primary
#D2B438
secondary
#919ED5
accent
#62E642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #D2B438

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

Preview Lab → · Contrast checker → · Palette generator →

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