#B8AF3A#B8AF3A

#B8AF3A is a light, vivid yellow. Relative luminance 0.412; OKLCH L 74.0% C 0.135 H 104.9°. Best body text is #000000 at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#B8AF3A
RGBrgb(184, 175, 58)
HSLhsl(56, 52%, 47%)
HSVhsv(56, 68%, 72%)
CMYKcmyk(0%, 4.9%, 68.5%, 27.8%)
CIE-LABlab(70.29, -10.62, 58.36)
CIE-LCHlch(70.29, 59.32, 100.31°)
OKLaboklab(74.02% -0.0348 0.1306)
OKLCHoklch(74.02% 0.135 104.9)
XYZxyz(35.8623, 41.1571, 10.0572)
Luminance0.4116 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8AF3A #3A43B8
analogous
#B8703A #B8AF3A #82B83A
triadic
#B8AF3A #3AB8AF #AF3AB8
tetradic
#B8AF3A #3AB870 #3A43B8 #B83A82
square
#B8AF3A #3AB870 #3A43B8 #B83A82
split-complementary
#B8AF3A #3A82B8 #703AB8
monochromatic
#5B561D #89832B #B8AF3A #CDC662 #DCD790

Accessibility & contrast

On white

2.27
#B8AF3A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.23
#B8AF3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8AF3A
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8AF3A#FFFFFF#000000##000000
##B8AF3A1.002.279.239.23
#FFFFFF2.271.0021.0021.00
#0000009.2321.001.001.00
##0000009.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA929
Deuteranopia (green-blind)
#C1AE42
Tritanopia (blue-blind)
#C5A397
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b8af3a;
/* rgb */ color: rgb(184, 175, 58);
/* oklch */ color: oklch(74.0% 0.135 104.9);
Tailwind
colors: {
  custom: {
    50: '#d1c677',
    500: '#b8af3a',
    950: '#000000',
  },
}
SCSS
$custom: #b8af3a;
$custom-light: #d1c677;
$custom-dark: #000000;
JSON
{
  "hex": "#b8af3a",
  "rgb": {
    "r": 184,
    "g": 175,
    "b": 58
  },
  "hsl": {
    "h": 55.714,
    "s": 52.066,
    "l": 47.451
  },
  "oklch": {
    "l": 0.7402,
    "c": 0.13515,
    "h": 104.9
  },
  "luminance": 0.41156
}

Semantic roles & 50–950 ramp

primary
#B8AF3A
secondary
#878BC7
accent
#57DC4C
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B8AF3A

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

Preview Lab → · Contrast checker → · Palette generator →

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