#B7AA40#B7AA40

#B7AA40 is a light, vivid yellow. Relative luminance 0.392; OKLCH L 72.9% C 0.126 H 102.3°. Best body text is #000000 at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#B7AA40
RGBrgb(183, 170, 64)
HSLhsl(53, 48%, 48%)
HSVhsv(53, 65%, 72%)
CMYKcmyk(0%, 7.1%, 65%, 28.2%)
CIE-LABlab(68.89, -8.09, 54.41)
CIE-LCHlch(68.89, 55.01, 98.46°)
OKLaboklab(72.9% -0.0269 0.1233)
OKLCHoklch(72.9% 0.126 102.3)
XYZxyz(34.8300, 39.1883, 10.5789)
Luminance0.3919 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AA40 #404DB7
analogous
#B76E40 #B7AA40 #88B740
triadic
#B7AA40 #40B7AA #AA40B7
tetradic
#B7AA40 #40B76E #404DB7 #B74088
square
#B7AA40 #40B76E #404DB7 #B74088
split-complementary
#B7AA40 #4088B7 #6E40B7
monochromatic
#5C5620 #8A8030 #B7AA40 #CBC069 #DBD397

Accessibility & contrast

On white

2.38
#B7AA40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.84
#B7AA40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7AA40
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7AA40#FFFFFF#000000##000000
##B7AA401.002.388.848.84
#FFFFFF2.381.0021.0021.00
#0000008.8421.001.001.00
##0000008.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A533
Deuteranopia (green-blind)
#BDAB46
Tritanopia (blue-blind)
#C49F94
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b7aa40;
/* rgb */ color: rgb(183, 170, 64);
/* oklch */ color: oklch(72.9% 0.126 102.3);
Tailwind
colors: {
  custom: {
    50: '#d0c37a',
    500: '#b7aa40',
    950: '#000000',
  },
}
SCSS
$custom: #b7aa40;
$custom-light: #d0c37a;
$custom-dark: #000000;
JSON
{
  "hex": "#b7aa40",
  "rgb": {
    "r": 183,
    "g": 170,
    "b": 64
  },
  "hsl": {
    "h": 53.445,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.72902,
    "c": 0.12618,
    "h": 102.3
  },
  "luminance": 0.39187
}

Semantic roles & 50–950 ramp

primary
#B7AA40
secondary
#8D93C6
accent
#5FD850
background
#FDFBF7
surface
#FAF7EE
border
#D3D0C9
text
#141209
muted
#83817B

Preview Lab

Preview with #B7AA40

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

Preview Lab → · Contrast checker → · Palette generator →

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