#B7AA2F#B7AA2F

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

Color values

HEX#B7AA2F
RGBrgb(183, 170, 47)
HSLhsl(54, 59%, 45%)
HSVhsv(54, 74%, 72%)
CMYKcmyk(0%, 7.1%, 74.3%, 28.2%)
CIE-LABlab(68.77, -9.00, 60.98)
CIE-LCHlch(68.77, 61.64, 98.39°)
OKLaboklab(72.77% -0.0313 0.1342)
OKLCHoklch(72.77% 0.138 103.1)
XYZxyz(34.4178, 39.0234, 8.4081)
Luminance0.3902 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AA2F #2F3CB7
analogous
#B7662F #B7AA2F #80B72F
triadic
#B7AA2F #2FB7AA #AA2FB7
tetradic
#B7AA2F #2FB766 #2F3CB7 #B72F80
square
#B7AA2F #2FB766 #2F3CB7 #B72F80
split-complementary
#B7AA2F #2F80B7 #662FB7
monochromatic
#565016 #867D22 #B7AA2F #D2C651 #DFD682

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7AA2F#FFFFFF#000000##000000
##B7AA2F1.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)
#BAA417
Deuteranopia (green-blind)
#BEAA38
Tritanopia (blue-blind)
#C59E92
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b7aa2f;
/* rgb */ color: rgb(183, 170, 47);
/* oklch */ color: oklch(72.8% 0.138 103.1);
Tailwind
colors: {
  custom: {
    50: '#d0c271',
    500: '#b7aa2f',
    950: '#000000',
  },
}
SCSS
$custom: #b7aa2f;
$custom-light: #d0c271;
$custom-dark: #000000;
JSON
{
  "hex": "#b7aa2f",
  "rgb": {
    "r": 183,
    "g": 170,
    "b": 47
  },
  "hsl": {
    "h": 54.265,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.72769,
    "c": 0.13779,
    "h": 103.1
  },
  "luminance": 0.39022
}

Semantic roles & 50–950 ramp

primary
#B7AA2F
secondary
#7A81C8
accent
#54E245
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B7AA2F

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

Preview Lab → · Contrast checker → · Palette generator →

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