#B7A52F#B7A52F

#B7A52F 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#B7A52F
RGBrgb(183, 165, 47)
HSLhsl(52, 59%, 45%)
HSVhsv(52, 74%, 72%)
CMYKcmyk(0%, 9.8%, 74.3%, 28.2%)
CIE-LABlab(67.42, -6.37, 59.70)
CIE-LCHlch(67.42, 60.04, 96.09°)
OKLaboklab(71.69% -0.0238 0.1315)
OKLCHoklch(71.69% 0.134 100.3)
XYZxyz(33.4983, 37.1844, 8.1016)
Luminance0.3718 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A52F #2F41B7
analogous
#B7612F #B7A52F #85B72F
triadic
#B7A52F #2FB7A5 #A52FB7
tetradic
#B7A52F #2FB761 #2F41B7 #B72F85
square
#B7A52F #2FB761 #2F41B7 #B72F85
split-complementary
#B7A52F #2F85B7 #612FB7
monochromatic
#564D16 #867922 #B7A52F #D2C151 #DFD282

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7A52F#FFFFFF#000000##000000
##B7A52F1.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)
#B5A019
Deuteranopia (green-blind)
#BAA737
Tritanopia (blue-blind)
#C5998E
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b7a52f;
/* rgb */ color: rgb(183, 165, 47);
/* oklch */ color: oklch(71.7% 0.134 100.3);
Tailwind
colors: {
  custom: {
    50: '#d0bf70',
    500: '#b7a52f',
    950: '#000000',
  },
}
SCSS
$custom: #b7a52f;
$custom-light: #d0bf70;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a52f",
  "rgb": {
    "r": 183,
    "g": 165,
    "b": 47
  },
  "hsl": {
    "h": 52.059,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.71694,
    "c": 0.13361,
    "h": 100.3
  },
  "luminance": 0.37183
}

Semantic roles & 50–950 ramp

primary
#B7A52F
secondary
#7A84C8
accent
#5AE245
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B7A52F

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

Preview Lab → · Contrast checker → · Palette generator →

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