#B8A23B#B8A23B

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

Color values

HEX#B8A23B
RGBrgb(184, 162, 59)
HSLhsl(49, 51%, 48%)
HSVhsv(49, 68%, 72%)
CMYKcmyk(0%, 12%, 67.9%, 27.8%)
CIE-LABlab(66.79, -3.72, 54.37)
CIE-LCHlch(66.79, 54.50, 93.91°)
OKLaboklab(71.24% -0.0151 0.1224)
OKLCHoklch(71.24% 0.123 97)
XYZxyz(33.4785, 36.3484, 9.3894)
Luminance0.3635 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A23B #3B51B8
analogous
#B8643B #B8A23B #8FB83B
triadic
#B8A23B #3BB8A2 #A23BB8
tetradic
#B8A23B #3BB864 #3B51B8 #B83B8F
square
#B8A23B #3BB864 #3B51B8 #B83B8F
split-complementary
#B8A23B #3B8FB8 #643BB8
monochromatic
#5B501D #8A792C #B8A23B #CDBA63 #DCCF92

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B8A23B#FFFFFF#000000##000000
##B8A23B1.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)
#B29E2D
Deuteranopia (green-blind)
#B8A641
Tritanopia (blue-blind)
#C6968D
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b8a23b;
/* rgb */ color: rgb(184, 162, 59);
/* oklch */ color: oklch(71.2% 0.123 97.0);
Tailwind
colors: {
  custom: {
    50: '#d1bd76',
    500: '#b8a23b',
    950: '#000000',
  },
}
SCSS
$custom: #b8a23b;
$custom-light: #d1bd76;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a23b",
  "rgb": {
    "r": 184,
    "g": 162,
    "b": 59
  },
  "hsl": {
    "h": 49.44,
    "s": 51.44,
    "l": 47.647
  },
  "oklch": {
    "l": 0.71243,
    "c": 0.12327,
    "h": 97
  },
  "luminance": 0.36347
}

Semantic roles & 50–950 ramp

primary
#B8A23B
secondary
#8893C7
accent
#66DB4D
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B8A23B

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

Preview Lab → · Contrast checker → · Palette generator →

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