#B8B02A#B8B02A

#B8B02A is a light, vivid yellow. Relative luminance 0.414; OKLCH L 74.1% C 0.146 H 105.9°. Best body text is #000000 at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#B8B02A
RGBrgb(184, 176, 42)
HSLhsl(57, 63%, 44%)
HSVhsv(57, 77%, 72%)
CMYKcmyk(0%, 4.3%, 77.2%, 27.8%)
CIE-LABlab(70.46, -11.88, 64.26)
CIE-LCHlch(70.46, 65.35, 100.48°)
OKLaboklab(74.13% -0.0399 0.1402)
OKLCHoklch(74.13% 0.146 105.9)
XYZxyz(35.7119, 41.4095, 8.3018)
Luminance0.4141 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B02A #2A32B8
analogous
#B8692A #B8B02A #79B82A
triadic
#B8B02A #2AB8B0 #B02AB8
tetradic
#B8B02A #2AB869 #2A32B8 #B82A79
square
#B8B02A #2AB869 #2A32B8 #B82A79
split-complementary
#B8B02A #2A79B8 #692AB8
monochromatic
#545113 #86801F #B8B02A #D6CE4A #E1DB7B

Accessibility & contrast

On white

2.26
#B8B02A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.28
#B8B02A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B02A
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B02A#FFFFFF#000000##000000
##B8B02A1.002.269.289.28
#FFFFFF2.261.0021.0021.00
#0000009.2821.001.001.00
##0000009.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0A905
Deuteranopia (green-blind)
#C3AF35
Tritanopia (blue-blind)
#C6A497
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b8b02a;
/* rgb */ color: rgb(184, 176, 42);
/* oklch */ color: oklch(74.1% 0.146 105.9);
Tailwind
colors: {
  custom: {
    50: '#d1c76f',
    500: '#b8b02a',
    950: '#000000',
  },
}
SCSS
$custom: #b8b02a;
$custom-light: #d1c76f;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b02a",
  "rgb": {
    "r": 184,
    "g": 176,
    "b": 42
  },
  "hsl": {
    "h": 56.62,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.74129,
    "c": 0.14575,
    "h": 105.9
  },
  "luminance": 0.41408
}

Semantic roles & 50–950 ramp

primary
#B8B02A
secondary
#7579C9
accent
#4BE642
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B8B02A

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

Preview Lab → · Contrast checker → · Palette generator →

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