#B7AA2A#B7AA2A

#B7AA2A is a light, vivid yellow. Relative luminance 0.390; OKLCH L 72.7% C 0.141 H 103.3°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#B7AA2A
RGBrgb(183, 170, 42)
HSLhsl(54, 63%, 44%)
HSVhsv(54, 77%, 72%)
CMYKcmyk(0%, 7.1%, 77%, 28.2%)
CIE-LABlab(68.74, -9.21, 62.66)
CIE-LCHlch(68.74, 63.34, 98.36°)
OKLaboklab(72.74% -0.0323 0.1368)
OKLCHoklch(72.74% 0.141 103.3)
XYZxyz(34.3226, 38.9854, 7.9070)
Luminance0.3898 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AA2A #2A37B7
analogous
#B7642A #B7AA2A #7EB72A
triadic
#B7AA2A #2AB7AA #AA2AB7
tetradic
#B7AA2A #2AB764 #2A37B7 #B72A7E
square
#B7AA2A #2AB764 #2A37B7 #B72A7E
split-complementary
#B7AA2A #2A7EB7 #642AB7
monochromatic
#534E13 #857C1F #B7AA2A #D5C849 #E1D77B

Accessibility & contrast

On white

2.39
#B7AA2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.80
#B7AA2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7AA2A
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7AA2A#FFFFFF#000000##000000
##B7AA2A1.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA40A
Deuteranopia (green-blind)
#BEAA34
Tritanopia (blue-blind)
#C59E92
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b7aa2a;
/* rgb */ color: rgb(183, 170, 42);
/* oklch */ color: oklch(72.7% 0.141 103.3);
Tailwind
colors: {
  custom: {
    50: '#d1c26e',
    500: '#b7aa2a',
    950: '#000000',
  },
}
SCSS
$custom: #b7aa2a;
$custom-light: #d1c26e;
$custom-dark: #000000;
JSON
{
  "hex": "#b7aa2a",
  "rgb": {
    "r": 183,
    "g": 170,
    "b": 42
  },
  "hsl": {
    "h": 54.468,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.72738,
    "c": 0.14058,
    "h": 103.3
  },
  "luminance": 0.38984
}

Semantic roles & 50–950 ramp

primary
#B7AA2A
secondary
#747CC9
accent
#51E642
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B7AA2A

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

Preview Lab → · Contrast checker → · Palette generator →

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