#B8B42B#B8B42B

#B8B42B is a light, vivid yellow. Relative luminance 0.430; OKLCH L 75.0% C 0.149 H 107.8°. Best body text is #000000 at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#B8B42B
RGBrgb(184, 180, 43)
HSLhsl(58, 62%, 45%)
HSVhsv(58, 77%, 72%)
CMYKcmyk(0%, 2.2%, 76.6%, 27.8%)
CIE-LABlab(71.56, -13.90, 64.95)
CIE-LCHlch(71.56, 66.42, 102.08°)
OKLaboklab(75.01% -0.0454 0.1418)
OKLCHoklch(75.01% 0.149 107.8)
XYZxyz(36.5259, 43.0085, 8.6625)
Luminance0.4301 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B42B #2B2FB8
analogous
#B86E2B #B8B42B #76B82B
triadic
#B8B42B #2BB8B4 #B42BB8
tetradic
#B8B42B #2BB86E #2B2FB8 #B82B76
square
#B8B42B #2BB86E #2B2FB8 #B82B76
split-complementary
#B8B42B #2B76B8 #6E2BB8
monochromatic
#555314 #86831F #B8B42B #D5D14B #E1DE7D

Accessibility & contrast

On white

2.19
#B8B42B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.60
#B8B42B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B42B
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B42B#FFFFFF#000000##000000
##B8B42B1.002.199.609.60
#FFFFFF2.191.0021.0021.00
#0000009.6021.001.001.00
##0000009.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD05
Deuteranopia (green-blind)
#C6B136
Tritanopia (blue-blind)
#C6A89A
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b8b42b;
/* rgb */ color: rgb(184, 180, 43);
/* oklch */ color: oklch(75.0% 0.149 107.8);
Tailwind
colors: {
  custom: {
    50: '#d1ca70',
    500: '#b8b42b',
    950: '#000000',
  },
}
SCSS
$custom: #b8b42b;
$custom-light: #d1ca70;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b42b",
  "rgb": {
    "r": 184,
    "g": 180,
    "b": 43
  },
  "hsl": {
    "h": 58.298,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.75007,
    "c": 0.14894,
    "h": 107.8
  },
  "luminance": 0.43007
}

Semantic roles & 50–950 ramp

primary
#B8B42B
secondary
#7678C9
accent
#47E543
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B8B42B

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

Preview Lab → · Contrast checker → · Palette generator →

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