#B7A52B#B7A52B

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

Color values

HEX#B7A52B
RGBrgb(183, 165, 43)
HSLhsl(52, 62%, 44%)
HSVhsv(52, 77%, 72%)
CMYKcmyk(0%, 9.8%, 76.5%, 28.2%)
CIE-LABlab(67.39, -6.54, 61.09)
CIE-LCHlch(67.39, 61.44, 96.11°)
OKLaboklab(71.67% -0.0247 0.1337)
OKLCHoklch(71.67% 0.136 100.5)
XYZxyz(33.4212, 37.1536, 7.6960)
Luminance0.3715 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A52B #2B3DB7
analogous
#B75F2B #B7A52B #83B72B
triadic
#B7A52B #2BB7A5 #A52BB7
tetradic
#B7A52B #2BB75F #2B3DB7 #B72B83
square
#B7A52B #2BB75F #2B3DB7 #B72B83
split-complementary
#B7A52B #2B83B7 #5F2BB7
monochromatic
#544C14 #85781F #B7A52B #D5C34B #E0D37C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7A52B#FFFFFF#000000##000000
##B7A52B1.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)
#B5A011
Deuteranopia (green-blind)
#BAA734
Tritanopia (blue-blind)
#C5998E
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b7a52b;
/* rgb */ color: rgb(183, 165, 43);
/* oklch */ color: oklch(71.7% 0.136 100.5);
Tailwind
colors: {
  custom: {
    50: '#d1bf6e',
    500: '#b7a52b',
    950: '#000000',
  },
}
SCSS
$custom: #b7a52b;
$custom-light: #d1bf6e;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a52b",
  "rgb": {
    "r": 183,
    "g": 165,
    "b": 43
  },
  "hsl": {
    "h": 52.286,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.71668,
    "c": 0.13592,
    "h": 100.5
  },
  "luminance": 0.37152
}

Semantic roles & 50–950 ramp

primary
#B7A52B
secondary
#7580C9
accent
#58E543
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#151208
muted
#83817B

Preview Lab

Preview with #B7A52B

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

Preview Lab → · Contrast checker → · Palette generator →

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