#B8AA2F#B8AA2F

#B8AA2F is a light, vivid yellow. Relative luminance 0.391; OKLCH L 72.9% C 0.138 H 102.6°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#B8AA2F
RGBrgb(184, 170, 47)
HSLhsl(54, 59%, 45%)
HSVhsv(54, 74%, 72%)
CMYKcmyk(0%, 7.6%, 74.5%, 27.8%)
CIE-LABlab(68.86, -8.56, 61.10)
CIE-LCHlch(68.86, 61.70, 97.97°)
OKLaboklab(72.86% -0.0301 0.1344)
OKLCHoklch(72.86% 0.138 102.6)
XYZxyz(34.6565, 39.1465, 8.4193)
Luminance0.3915 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8AA2F #2F3DB8
analogous
#B8662F #B8AA2F #81B82F
triadic
#B8AA2F #2FB8AA #AA2FB8
tetradic
#B8AA2F #2FB866 #2F3DB8 #B82F81
square
#B8AA2F #2FB866 #2F3DB8 #B82F81
split-complementary
#B8AA2F #2F81B8 #662FB8
monochromatic
#575016 #877D23 #B8AA2F #D3C552 #DFD682

Accessibility & contrast

On white

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

On black

8.83
#B8AA2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8AA2F
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8AA2F#FFFFFF#000000##000000
##B8AA2F1.002.388.838.83
#FFFFFF2.381.0021.0021.00
#0000008.8321.001.001.00
##0000008.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA517
Deuteranopia (green-blind)
#BEAB38
Tritanopia (blue-blind)
#C69E92
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b8aa2f;
/* rgb */ color: rgb(184, 170, 47);
/* oklch */ color: oklch(72.9% 0.138 102.6);
Tailwind
colors: {
  custom: {
    50: '#d1c271',
    500: '#b8aa2f',
    950: '#000000',
  },
}
SCSS
$custom: #b8aa2f;
$custom-light: #d1c271;
$custom-dark: #000000;
JSON
{
  "hex": "#b8aa2f",
  "rgb": {
    "r": 184,
    "g": 170,
    "b": 47
  },
  "hsl": {
    "h": 53.869,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.72861,
    "c": 0.13772,
    "h": 102.6
  },
  "luminance": 0.39145
}

Semantic roles & 50–950 ramp

primary
#B8AA2F
secondary
#7B82C8
accent
#55E245
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B8AA2F

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

Preview Lab → · Contrast checker → · Palette generator →

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