#D7BA2C#D7BA2C

#D7BA2C is a light, vivid yellow. Relative luminance 0.497; OKLCH L 79.1% C 0.152 H 96.7°. Best body text is #000000 at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#D7BA2C
RGBrgb(215, 186, 44)
HSLhsl(50, 68%, 51%)
HSVhsv(50, 80%, 84%)
CMYKcmyk(0%, 13.5%, 79.5%, 15.7%)
CIE-LABlab(75.92, -3.51, 69.58)
CIE-LCHlch(75.92, 69.67, 92.89°)
OKLaboklab(79.12% -0.0177 0.1506)
OKLCHoklch(79.12% 0.152 96.7)
XYZxyz(46.0404, 49.7493, 9.5599)
Luminance0.4975 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7BA2C #2C49D7
analogous
#D7652C #D7BA2C #9ED72C
triadic
#D7BA2C #2CD7BA #BA2CD7
tetradic
#D7BA2C #2CD765 #2C49D7 #D72C9E
square
#D7BA2C #2CD765 #2C49D7 #D72C9E
split-complementary
#D7BA2C #2C9ED7 #652CD7
monochromatic
#736316 #A68F20 #D7BA2C #E1CB5F #EBDC93

Accessibility & contrast

On white

1.92
#D7BA2C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.95
#D7BA2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7BA2C
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7BA2C#FFFFFF#000000##000000
##D7BA2C1.001.9210.9510.95
#FFFFFF1.921.0021.0021.00
#00000010.9521.001.001.00
##00000010.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB601
Deuteranopia (green-blind)
#D5BF36
Tritanopia (blue-blind)
#E9ABA0
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #d7ba2c;
/* rgb */ color: rgb(215, 186, 44);
/* oklch */ color: oklch(79.1% 0.152 96.7);
Tailwind
colors: {
  custom: {
    50: '#e8ce72',
    500: '#d7ba2c',
    950: '#000000',
  },
}
SCSS
$custom: #d7ba2c;
$custom-light: #e8ce72;
$custom-dark: #000000;
JSON
{
  "hex": "#d7ba2c",
  "rgb": {
    "r": 215,
    "g": 186,
    "b": 44
  },
  "hsl": {
    "h": 49.825,
    "s": 68.127,
    "l": 50.784
  },
  "oklch": {
    "l": 0.79123,
    "c": 0.15163,
    "h": 96.7
  },
  "luminance": 0.49747
}

Semantic roles & 50–950 ramp

primary
#D7BA2C
secondary
#8996D5
accent
#5AEB3D
background
#FEFCF7
surface
#FDF9ED
border
#D5D2C8
text
#171309
muted
#85827B

Preview Lab

Preview with #D7BA2C

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

Preview Lab → · Contrast checker → · Palette generator →

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