#B7B42A#B7B42A

#B7B42A is a light, vivid yellow. Relative luminance 0.429; OKLCH L 74.9% C 0.150 H 108.2°. Best body text is #000000 at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#B7B42A
RGBrgb(183, 180, 42)
HSLhsl(59, 63%, 44%)
HSVhsv(59, 77%, 72%)
CMYKcmyk(0%, 1.6%, 77%, 28.2%)
CIE-LABlab(71.47, -14.37, 65.15)
CIE-LCHlch(71.47, 66.72, 102.44°)
OKLaboklab(74.91% -0.0468 0.1421)
OKLCHoklch(74.91% 0.15 108.2)
XYZxyz(36.2691, 42.8782, 8.5558)
Luminance0.4288 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B42A #2A2DB7
analogous
#B76D2A #B7B42A #74B72A
triadic
#B7B42A #2AB7B4 #B42AB7
tetradic
#B7B42A #2AB76D #2A2DB7 #B72A74
square
#B7B42A #2AB76D #2A2DB7 #B72A74
split-complementary
#B7B42A #2A74B7 #6D2AB7
monochromatic
#535213 #85831F #B7B42A #D5D249 #E1DE7B

Accessibility & contrast

On white

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

On black

9.58
#B7B42A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7B42A
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7B42A#FFFFFF#000000##000000
##B7B42A1.002.199.589.58
#FFFFFF2.191.0021.0021.00
#0000009.5821.001.001.00
##0000009.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD02
Deuteranopia (green-blind)
#C5B136
Tritanopia (blue-blind)
#C5A89A
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b7b42a;
/* rgb */ color: rgb(183, 180, 42);
/* oklch */ color: oklch(74.9% 0.150 108.2);
Tailwind
colors: {
  custom: {
    50: '#d0ca70',
    500: '#b7b42a',
    950: '#000000',
  },
}
SCSS
$custom: #b7b42a;
$custom-light: #d0ca70;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b42a",
  "rgb": {
    "r": 183,
    "g": 180,
    "b": 42
  },
  "hsl": {
    "h": 58.723,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.74914,
    "c": 0.14962,
    "h": 108.2
  },
  "luminance": 0.42877
}

Semantic roles & 50–950 ramp

primary
#B7B42A
secondary
#7476C9
accent
#46E642
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B7B42A

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

Preview Lab → · Contrast checker → · Palette generator →

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