#B7B42C#B7B42C

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

Color values

HEX#B7B42C
RGBrgb(183, 180, 44)
HSLhsl(59, 61%, 45%)
HSVhsv(59, 76%, 72%)
CMYKcmyk(0%, 1.6%, 76%, 28.2%)
CIE-LABlab(71.48, -14.29, 64.53)
CIE-LCHlch(71.48, 66.09, 102.49°)
OKLaboklab(74.93% -0.0464 0.1412)
OKLCHoklch(74.93% 0.149 108.2)
XYZxyz(36.3057, 42.8929, 8.7491)
Luminance0.4289 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B42C #2C2FB7
analogous
#B76F2C #B7B42C #75B72C
triadic
#B7B42C #2CB7B4 #B42CB7
tetradic
#B7B42C #2CB76F #2C2FB7 #B72C75
square
#B7B42C #2CB76F #2C2FB7 #B72C75
split-complementary
#B7B42C #2C75B7 #6F2CB7
monochromatic
#545314 #868320 #B7B42C #D4D14C #E0DE7E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7B42C#FFFFFF#000000##000000
##B7B42C1.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)
#C3AD09
Deuteranopia (green-blind)
#C5B137
Tritanopia (blue-blind)
#C4A89A
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b7b42c;
/* rgb */ color: rgb(183, 180, 44);
/* oklch */ color: oklch(74.9% 0.149 108.2);
Tailwind
colors: {
  custom: {
    50: '#d0ca70',
    500: '#b7b42c',
    950: '#000000',
  },
}
SCSS
$custom: #b7b42c;
$custom-light: #d0ca70;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b42c",
  "rgb": {
    "r": 183,
    "g": 180,
    "b": 44
  },
  "hsl": {
    "h": 58.705,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.74926,
    "c": 0.1486,
    "h": 108.2
  },
  "luminance": 0.42892
}

Semantic roles & 50–950 ramp

primary
#B7B42C
secondary
#7678C8
accent
#47E443
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B7B42C

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

Preview Lab → · Contrast checker → · Palette generator →

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