#B7A52D#B7A52D

#B7A52D is a light, vivid yellow. Relative luminance 0.372; OKLCH L 71.7% C 0.135 H 100.4°. Best body text is #000000 at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#B7A52D
RGBrgb(183, 165, 45)
HSLhsl(52, 61%, 45%)
HSVhsv(52, 75%, 72%)
CMYKcmyk(0%, 9.8%, 75.4%, 28.2%)
CIE-LABlab(67.40, -6.45, 60.40)
CIE-LCHlch(67.40, 60.75, 96.10°)
OKLaboklab(71.68% -0.0243 0.1326)
OKLCHoklch(71.68% 0.135 100.4)
XYZxyz(33.4588, 37.1686, 7.8940)
Luminance0.3717 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A52D #2D3FB7
analogous
#B7602D #B7A52D #84B72D
triadic
#B7A52D #2DB7A5 #A52DB7
tetradic
#B7A52D #2DB760 #2D3FB7 #B72D84
square
#B7A52D #2DB760 #2D3FB7 #B72D84
split-complementary
#B7A52D #2D84B7 #602DB7
monochromatic
#554C15 #867921 #B7A52D #D3C24E #DFD37F

Accessibility & contrast

On white

2.49
#B7A52D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.43
#B7A52D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A52D
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A52D#FFFFFF#000000##000000
##B7A52D1.002.498.438.43
#FFFFFF2.491.0021.0021.00
#0000008.4321.001.001.00
##0000008.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A015
Deuteranopia (green-blind)
#BAA735
Tritanopia (blue-blind)
#C5998E
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b7a52d;
/* rgb */ color: rgb(183, 165, 45);
/* oklch */ color: oklch(71.7% 0.135 100.4);
Tailwind
colors: {
  custom: {
    50: '#d0bf6f',
    500: '#b7a52d',
    950: '#000000',
  },
}
SCSS
$custom: #b7a52d;
$custom-light: #d0bf6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a52d",
  "rgb": {
    "r": 183,
    "g": 165,
    "b": 45
  },
  "hsl": {
    "h": 52.174,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.71681,
    "c": 0.13479,
    "h": 100.4
  },
  "luminance": 0.37167
}

Semantic roles & 50–950 ramp

primary
#B7A52D
secondary
#7882C8
accent
#59E444
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B7A52D

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

Preview Lab → · Contrast checker → · Palette generator →

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