#B7AA2D#B7AA2D

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

Color values

HEX#B7AA2D
RGBrgb(183, 170, 45)
HSLhsl(54, 61%, 45%)
HSVhsv(54, 75%, 72%)
CMYKcmyk(0%, 7.1%, 75.4%, 28.2%)
CIE-LABlab(68.76, -9.08, 61.67)
CIE-LCHlch(68.76, 62.34, 98.38°)
OKLaboklab(72.76% -0.0317 0.1353)
OKLCHoklch(72.76% 0.139 103.2)
XYZxyz(34.3784, 39.0077, 8.2005)
Luminance0.3901 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AA2D #2D3AB7
analogous
#B7652D #B7AA2D #7FB72D
triadic
#B7AA2D #2DB7AA #AA2DB7
tetradic
#B7AA2D #2DB765 #2D3AB7 #B72D7F
square
#B7AA2D #2DB765 #2D3AB7 #B72D7F
split-complementary
#B7AA2D #2D7FB7 #652DB7
monochromatic
#554F15 #867C21 #B7AA2D #D3C74E #DFD67F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7AA2D#FFFFFF#000000##000000
##B7AA2D1.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)
#BAA413
Deuteranopia (green-blind)
#BEAA36
Tritanopia (blue-blind)
#C59E92
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b7aa2d;
/* rgb */ color: rgb(183, 170, 45);
/* oklch */ color: oklch(72.8% 0.139 103.2);
Tailwind
colors: {
  custom: {
    50: '#d0c270',
    500: '#b7aa2d',
    950: '#000000',
  },
}
SCSS
$custom: #b7aa2d;
$custom-light: #d0c270;
$custom-dark: #000000;
JSON
{
  "hex": "#b7aa2d",
  "rgb": {
    "r": 183,
    "g": 170,
    "b": 45
  },
  "hsl": {
    "h": 54.348,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.72756,
    "c": 0.13894,
    "h": 103.2
  },
  "luminance": 0.39006
}

Semantic roles & 50–950 ramp

primary
#B7AA2D
secondary
#787FC8
accent
#53E444
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B7AA2D

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

Preview Lab → · Contrast checker → · Palette generator →

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