#B7A52C#B7A52C

#B7A52C 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#B7A52C
RGBrgb(183, 165, 44)
HSLhsl(52, 61%, 45%)
HSVhsv(52, 76%, 72%)
CMYKcmyk(0%, 9.8%, 76%, 28.2%)
CIE-LABlab(67.40, -6.50, 60.75)
CIE-LCHlch(67.40, 61.09, 96.10°)
OKLaboklab(71.67% -0.0245 0.1331)
OKLCHoklch(71.67% 0.135 100.4)
XYZxyz(33.4398, 37.1610, 7.7938)
Luminance0.3716 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A52C #2C3EB7
analogous
#B7602C #B7A52C #84B72C
triadic
#B7A52C #2CB7A5 #A52CB7
tetradic
#B7A52C #2CB760 #2C3EB7 #B72C84
square
#B7A52C #2CB760 #2C3EB7 #B72C84
split-complementary
#B7A52C #2C84B7 #602CB7
monochromatic
#544C14 #867920 #B7A52C #D4C24C #E0D37E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #b7a52c;
/* rgb */ color: rgb(183, 165, 44);
/* oklch */ color: oklch(71.7% 0.135 100.4);
Tailwind
colors: {
  custom: {
    50: '#d0bf6f',
    500: '#b7a52c',
    950: '#000000',
  },
}
SCSS
$custom: #b7a52c;
$custom-light: #d0bf6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a52c",
  "rgb": {
    "r": 183,
    "g": 165,
    "b": 44
  },
  "hsl": {
    "h": 52.23,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.71674,
    "c": 0.13536,
    "h": 100.4
  },
  "luminance": 0.37159
}

Semantic roles & 50–950 ramp

primary
#B7A52C
secondary
#7681C8
accent
#58E443
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B7A52C

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

Preview Lab → · Contrast checker → · Palette generator →

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