#B7A52E#B7A52E

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

Color values

HEX#B7A52E
RGBrgb(183, 165, 46)
HSLhsl(52, 60%, 45%)
HSVhsv(52, 75%, 72%)
CMYKcmyk(0%, 9.8%, 74.9%, 28.2%)
CIE-LABlab(67.41, -6.41, 60.05)
CIE-LCHlch(67.41, 60.39, 96.09°)
OKLaboklab(71.69% -0.0241 0.132)
OKLCHoklch(71.69% 0.134 100.3)
XYZxyz(33.4783, 37.1764, 7.9966)
Luminance0.3718 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A52E #2E40B7
analogous
#B7612E #B7A52E #84B72E
triadic
#B7A52E #2EB7A5 #A52EB7
tetradic
#B7A52E #2EB761 #2E40B7 #B72E84
square
#B7A52E #2EB761 #2E40B7 #B72E84
split-complementary
#B7A52E #2E84B7 #612EB7
monochromatic
#554D15 #867922 #B7A52E #D3C24F #DFD380

Accessibility & contrast

On white

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

On black

8.44
#B7A52E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A52E
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A52E#FFFFFF#000000##000000
##B7A52E1.002.498.448.44
#FFFFFF2.491.0021.0021.00
#0000008.4421.001.001.00
##0000008.4421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b7a52e;
/* rgb */ color: rgb(183, 165, 46);
/* oklch */ color: oklch(71.7% 0.134 100.3);
Tailwind
colors: {
  custom: {
    50: '#d0bf70',
    500: '#b7a52e',
    950: '#000000',
  },
}
SCSS
$custom: #b7a52e;
$custom-light: #d0bf70;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a52e",
  "rgb": {
    "r": 183,
    "g": 165,
    "b": 46
  },
  "hsl": {
    "h": 52.117,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.71687,
    "c": 0.13421,
    "h": 100.3
  },
  "luminance": 0.37175
}

Semantic roles & 50–950 ramp

primary
#B7A52E
secondary
#7983C8
accent
#5AE345
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B7A52E

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

Preview Lab → · Contrast checker → · Palette generator →

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