#B8A23A#B8A23A

#B8A23A is a light, vivid yellow. Relative luminance 0.363; OKLCH L 71.2% C 0.124 H 97.1°. Best body text is #000000 at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#B8A23A
RGBrgb(184, 162, 58)
HSLhsl(50, 52%, 47%)
HSVhsv(50, 68%, 72%)
CMYKcmyk(0%, 12%, 68.5%, 27.8%)
CIE-LABlab(66.78, -3.78, 54.79)
CIE-LCHlch(66.78, 54.92, 93.94°)
OKLaboklab(71.23% -0.0153 0.1231)
OKLCHoklch(71.23% 0.124 97.1)
XYZxyz(33.4528, 36.3382, 9.2541)
Luminance0.3634 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A23A #3A50B8
analogous
#B8633A #B8A23A #8FB83A
triadic
#B8A23A #3AB8A2 #A23AB8
tetradic
#B8A23A #3AB863 #3A50B8 #B83A8F
square
#B8A23A #3AB863 #3A50B8 #B83A8F
split-complementary
#B8A23A #3A8FB8 #633AB8
monochromatic
#5B501D #89792B #B8A23A #CDBB62 #DCCF90

Accessibility & contrast

On white

2.54
#B8A23A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.27
#B8A23A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A23A
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A23A#FFFFFF#000000##000000
##B8A23A1.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E2C
Deuteranopia (green-blind)
#B8A640
Tritanopia (blue-blind)
#C6968D
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b8a23a;
/* rgb */ color: rgb(184, 162, 58);
/* oklch */ color: oklch(71.2% 0.124 97.1);
Tailwind
colors: {
  custom: {
    50: '#d1bd76',
    500: '#b8a23a',
    950: '#000000',
  },
}
SCSS
$custom: #b8a23a;
$custom-light: #d1bd76;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a23a",
  "rgb": {
    "r": 184,
    "g": 162,
    "b": 58
  },
  "hsl": {
    "h": 49.524,
    "s": 52.066,
    "l": 47.451
  },
  "oklch": {
    "l": 0.71234,
    "c": 0.124,
    "h": 97.1
  },
  "luminance": 0.36336
}

Semantic roles & 50–950 ramp

primary
#B8A23A
secondary
#8792C7
accent
#65DC4C
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B8A23A

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

Preview Lab → · Contrast checker → · Palette generator →

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