#B7AA2C#B7AA2C

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

Color values

HEX#B7AA2C
RGBrgb(183, 170, 44)
HSLhsl(54, 61%, 45%)
HSVhsv(54, 76%, 72%)
CMYKcmyk(0%, 7.1%, 76%, 28.2%)
CIE-LABlab(68.75, -9.13, 62.01)
CIE-LCHlch(68.75, 62.68, 98.37°)
OKLaboklab(72.75% -0.0319 0.1358)
OKLCHoklch(72.75% 0.14 103.2)
XYZxyz(34.3593, 39.0000, 8.1003)
Luminance0.3900 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AA2C #2C39B7
analogous
#B7642C #B7AA2C #7FB72C
triadic
#B7AA2C #2CB7AA #AA2CB7
tetradic
#B7AA2C #2CB764 #2C39B7 #B72C7F
square
#B7AA2C #2CB764 #2C39B7 #B72C7F
split-complementary
#B7AA2C #2C7FB7 #642CB7
monochromatic
#544E14 #867C20 #B7AA2C #D4C74C #E0D77E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7AA2C#FFFFFF#000000##000000
##B7AA2C1.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)
#BAA410
Deuteranopia (green-blind)
#BEAA35
Tritanopia (blue-blind)
#C59E92
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b7aa2c;
/* rgb */ color: rgb(183, 170, 44);
/* oklch */ color: oklch(72.8% 0.140 103.2);
Tailwind
colors: {
  custom: {
    50: '#d0c26f',
    500: '#b7aa2c',
    950: '#000000',
  },
}
SCSS
$custom: #b7aa2c;
$custom-light: #d0c26f;
$custom-dark: #000000;
JSON
{
  "hex": "#b7aa2c",
  "rgb": {
    "r": 183,
    "g": 170,
    "b": 44
  },
  "hsl": {
    "h": 54.388,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.7275,
    "c": 0.1395,
    "h": 103.2
  },
  "luminance": 0.38999
}

Semantic roles & 50–950 ramp

primary
#B7AA2C
secondary
#767EC8
accent
#53E443
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B7AA2C

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

Preview Lab → · Contrast checker → · Palette generator →

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