#B8B23A#B8B23A

#B8B23A is a light, vivid yellow. Relative luminance 0.423; OKLCH L 74.7% C 0.138 H 106.5°. Best body text is #000000 at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#B8B23A
RGBrgb(184, 178, 58)
HSLhsl(57, 52%, 47%)
HSVhsv(57, 68%, 72%)
CMYKcmyk(0%, 3.3%, 68.5%, 27.8%)
CIE-LABlab(71.10, -12.17, 59.19)
CIE-LCHlch(71.10, 60.42, 101.62°)
OKLaboklab(74.67% -0.0391 0.1323)
OKLCHoklch(74.67% 0.138 106.5)
XYZxyz(36.4527, 42.3379, 10.2540)
Luminance0.4234 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B23A #3A40B8
analogous
#B8733A #B8B23A #7FB83A
triadic
#B8B23A #3AB8B2 #B23AB8
tetradic
#B8B23A #3AB873 #3A40B8 #B83A7F
square
#B8B23A #3AB873 #3A40B8 #B83A7F
split-complementary
#B8B23A #3A7FB8 #733AB8
monochromatic
#5B581D #89852B #B8B23A #CDC862 #DCD890

Accessibility & contrast

On white

2.22
#B8B23A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.47
#B8B23A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B23A
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B23A#FFFFFF#000000##000000
##B8B23A1.002.229.479.47
#FFFFFF2.221.0021.0021.00
#0000009.4721.001.001.00
##0000009.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB28
Deuteranopia (green-blind)
#C4B042
Tritanopia (blue-blind)
#C5A69A
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b8b23a;
/* rgb */ color: rgb(184, 178, 58);
/* oklch */ color: oklch(74.7% 0.138 106.5);
Tailwind
colors: {
  custom: {
    50: '#d1c877',
    500: '#b8b23a',
    950: '#000000',
  },
}
SCSS
$custom: #b8b23a;
$custom-light: #d1c877;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b23a",
  "rgb": {
    "r": 184,
    "g": 178,
    "b": 58
  },
  "hsl": {
    "h": 57.143,
    "s": 52.066,
    "l": 47.451
  },
  "oklch": {
    "l": 0.74671,
    "c": 0.13801,
    "h": 106.5
  },
  "luminance": 0.42337
}

Semantic roles & 50–950 ramp

primary
#B8B23A
secondary
#878AC7
accent
#53DC4C
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#141309
muted
#83827B

Preview Lab

Preview with #B8B23A

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

Preview Lab → · Contrast checker → · Palette generator →

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