#B7A72A#B7A72A

#B7A72A is a light, vivid yellow. Relative luminance 0.379; OKLCH L 72.1% C 0.138 H 101.7°. Best body text is #000000 at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#B7A72A
RGBrgb(183, 167, 42)
HSLhsl(53, 63%, 44%)
HSVhsv(53, 77%, 72%)
CMYKcmyk(0%, 8.7%, 77%, 28.2%)
CIE-LABlab(67.93, -7.63, 61.92)
CIE-LCHlch(67.93, 62.39, 97.03°)
OKLaboklab(72.09% -0.0279 0.1352)
OKLCHoklch(72.09% 0.138 101.7)
XYZxyz(33.7667, 37.8734, 7.7217)
Luminance0.3787 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A72A #2A3AB7
analogous
#B7602A #B7A72A #81B72A
triadic
#B7A72A #2AB7A7 #A72AB7
tetradic
#B7A72A #2AB760 #2A3AB7 #B72A81
square
#B7A72A #2AB760 #2A3AB7 #B72A81
split-complementary
#B7A72A #2A81B7 #602AB7
monochromatic
#534C13 #857A1F #B7A72A #D5C549 #E1D57B

Accessibility & contrast

On white

2.45
#B7A72A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.57
#B7A72A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A72A
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A72A#FFFFFF#000000##000000
##B7A72A1.002.458.578.57
#FFFFFF2.451.0021.0021.00
#0000008.5721.001.001.00
##0000008.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A20D
Deuteranopia (green-blind)
#BCA833
Tritanopia (blue-blind)
#C59B8F
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b7a72a;
/* rgb */ color: rgb(183, 167, 42);
/* oklch */ color: oklch(72.1% 0.138 101.7);
Tailwind
colors: {
  custom: {
    50: '#d1c06e',
    500: '#b7a72a',
    950: '#000000',
  },
}
SCSS
$custom: #b7a72a;
$custom-light: #d1c06e;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a72a",
  "rgb": {
    "r": 183,
    "g": 167,
    "b": 42
  },
  "hsl": {
    "h": 53.191,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.72091,
    "c": 0.13807,
    "h": 101.7
  },
  "luminance": 0.37872
}

Semantic roles & 50–950 ramp

primary
#B7A72A
secondary
#747EC9
accent
#55E642
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#151208
muted
#83817B

Preview Lab

Preview with #B7A72A

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

Preview Lab → · Contrast checker → · Palette generator →

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