#B8B334#B8B334

#B8B334 is a light, vivid yellow. Relative luminance 0.427; OKLCH L 74.8% C 0.143 H 107.1°. Best body text is #000000 at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#B8B334
RGBrgb(184, 179, 52)
HSLhsl(58, 56%, 46%)
HSVhsv(58, 72%, 72%)
CMYKcmyk(0%, 2.7%, 71.7%, 27.8%)
CIE-LABlab(71.34, -12.99, 61.68)
CIE-LCHlch(71.34, 63.03, 101.90°)
OKLaboklab(74.84% -0.0421 0.1366)
OKLCHoklch(74.84% 0.143 107.1)
XYZxyz(36.5085, 42.6797, 9.5630)
Luminance0.4268 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B334 #3439B8
analogous
#B87134 #B8B334 #7BB834
triadic
#B8B334 #34B8B3 #B334B8
tetradic
#B8B334 #34B871 #3439B8 #B8347B
square
#B8B334 #34B871 #3439B8 #B8347B
split-complementary
#B8B334 #347BB8 #7134B8
monochromatic
#595619 #888527 #B8B334 #D0CC59 #DEDA89

Accessibility & contrast

On white

2.20
#B8B334 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.54
#B8B334 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B334
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B334#FFFFFF#000000##000000
##B8B3341.002.209.549.54
#FFFFFF2.201.0021.0021.00
#0000009.5421.001.001.00
##0000009.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC1D
Deuteranopia (green-blind)
#C5B13D
Tritanopia (blue-blind)
#C5A79A
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b8b334;
/* rgb */ color: rgb(184, 179, 52);
/* oklch */ color: oklch(74.8% 0.143 107.1);
Tailwind
colors: {
  custom: {
    50: '#d1c974',
    500: '#b8b334',
    950: '#000000',
  },
}
SCSS
$custom: #b8b334;
$custom-light: #d1c974;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b334",
  "rgb": {
    "r": 184,
    "g": 179,
    "b": 52
  },
  "hsl": {
    "h": 57.727,
    "s": 55.932,
    "l": 46.275
  },
  "oklch": {
    "l": 0.74844,
    "c": 0.1429,
    "h": 107.1
  },
  "luminance": 0.42678
}

Semantic roles & 50–950 ramp

primary
#B8B334
secondary
#8083C8
accent
#4EDF49
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B8B334

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

Preview Lab → · Contrast checker → · Palette generator →

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