#B7A52A#B7A52A

#B7A52A is a light, vivid yellow. Relative luminance 0.371; 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#B7A52A
RGBrgb(183, 165, 42)
HSLhsl(52, 63%, 44%)
HSVhsv(52, 77%, 72%)
CMYKcmyk(0%, 9.8%, 77%, 28.2%)
CIE-LABlab(67.39, -6.58, 61.42)
CIE-LCHlch(67.39, 61.77, 96.11°)
OKLaboklab(71.66% -0.0249 0.1342)
OKLCHoklch(71.66% 0.136 100.5)
XYZxyz(33.4031, 37.1463, 7.6005)
Luminance0.3715 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A52A #2A3CB7
analogous
#B75E2A #B7A52A #83B72A
triadic
#B7A52A #2AB7A5 #A52AB7
tetradic
#B7A52A #2AB75E #2A3CB7 #B72A83
square
#B7A52A #2AB75E #2A3CB7 #B72A83
split-complementary
#B7A52A #2A83B7 #5E2AB7
monochromatic
#534B13 #85781F #B7A52A #D5C349 #E1D47B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7A52A#FFFFFF#000000##000000
##B7A52A1.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)
#B5A00E
Deuteranopia (green-blind)
#BAA733
Tritanopia (blue-blind)
#C5998E
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b7a52a;
/* rgb */ color: rgb(183, 165, 42);
/* oklch */ color: oklch(71.7% 0.136 100.5);
Tailwind
colors: {
  custom: {
    50: '#d1bf6e',
    500: '#b7a52a',
    950: '#000000',
  },
}
SCSS
$custom: #b7a52a;
$custom-light: #d1bf6e;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a52a",
  "rgb": {
    "r": 183,
    "g": 165,
    "b": 42
  },
  "hsl": {
    "h": 52.34,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.71662,
    "c": 0.13646,
    "h": 100.5
  },
  "luminance": 0.37145
}

Semantic roles & 50–950 ramp

primary
#B7A52A
secondary
#747FC9
accent
#57E642
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#151208
muted
#83817B

Preview Lab

Preview with #B7A52A

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

Preview Lab → · Contrast checker → · Palette generator →

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