#B8B42A#B8B42A

#B8B42A 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#B8B42A
RGBrgb(184, 180, 42)
HSLhsl(58, 63%, 44%)
HSVhsv(58, 77%, 72%)
CMYKcmyk(0%, 2.2%, 77.2%, 27.8%)
CIE-LABlab(71.56, -13.94, 65.26)
CIE-LCHlch(71.56, 66.73, 102.06°)
OKLaboklab(75% -0.0456 0.1423)
OKLCHoklch(75% 0.149 107.8)
XYZxyz(36.5078, 43.0013, 8.5670)
Luminance0.4300 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B42A #2A2EB8
analogous
#B86D2A #B8B42A #75B82A
triadic
#B8B42A #2AB8B4 #B42AB8
tetradic
#B8B42A #2AB86D #2A2EB8 #B82A75
square
#B8B42A #2AB86D #2A2EB8 #B82A75
split-complementary
#B8B42A #2A75B8 #6D2AB8
monochromatic
#545313 #86831F #B8B42A #D6D24A #E1DE7B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B8B42A#FFFFFF#000000##000000
##B8B42A1.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)
#C3AD02
Deuteranopia (green-blind)
#C6B136
Tritanopia (blue-blind)
#C6A89A
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b8b42a;
/* rgb */ color: rgb(184, 180, 42);
/* oklch */ color: oklch(75.0% 0.149 107.8);
Tailwind
colors: {
  custom: {
    50: '#d1ca70',
    500: '#b8b42a',
    950: '#000000',
  },
}
SCSS
$custom: #b8b42a;
$custom-light: #d1ca70;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b42a",
  "rgb": {
    "r": 184,
    "g": 180,
    "b": 42
  },
  "hsl": {
    "h": 58.31,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.75001,
    "c": 0.14945,
    "h": 107.8
  },
  "luminance": 0.43
}

Semantic roles & 50–950 ramp

primary
#B8B42A
secondary
#7577C9
accent
#47E642
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B8B42A

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

Preview Lab → · Contrast checker → · Palette generator →

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