#B7A42B#B7A42B

#B7A42B is a light, vivid yellow. Relative luminance 0.368; OKLCH L 71.5% C 0.135 H 99.9°. Best body text is #000000 at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#B7A42B
RGBrgb(183, 164, 43)
HSLhsl(52, 62%, 44%)
HSVhsv(52, 77%, 72%)
CMYKcmyk(0%, 10.4%, 76.5%, 28.2%)
CIE-LABlab(67.12, -6.01, 60.84)
CIE-LCHlch(67.12, 61.13, 95.64°)
OKLaboklab(71.45% -0.0232 0.1331)
OKLCHoklch(71.45% 0.135 99.9)
XYZxyz(33.2416, 36.7942, 7.6361)
Luminance0.3679 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A42B #2B3EB7
analogous
#B75E2B #B7A42B #84B72B
triadic
#B7A42B #2BB7A4 #A42BB7
tetradic
#B7A42B #2BB75E #2B3EB7 #B72B84
square
#B7A42B #2BB75E #2B3EB7 #B72B84
split-complementary
#B7A42B #2B84B7 #5E2BB7
monochromatic
#544B14 #85781F #B7A42B #D5C24B #E0D37C

Accessibility & contrast

On white

2.51
#B7A42B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.36
#B7A42B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A42B
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A42B#FFFFFF#000000##000000
##B7A42B1.002.518.368.36
#FFFFFF2.511.0021.0021.00
#0000008.3621.001.001.00
##0000008.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F11
Deuteranopia (green-blind)
#B9A634
Tritanopia (blue-blind)
#C6988D
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b7a42b;
/* rgb */ color: rgb(183, 164, 43);
/* oklch */ color: oklch(71.5% 0.135 99.9);
Tailwind
colors: {
  custom: {
    50: '#d1be6e',
    500: '#b7a42b',
    950: '#000000',
  },
}
SCSS
$custom: #b7a42b;
$custom-light: #d1be6e;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a42b",
  "rgb": {
    "r": 183,
    "g": 164,
    "b": 43
  },
  "hsl": {
    "h": 51.857,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.71454,
    "c": 0.13512,
    "h": 99.9
  },
  "luminance": 0.36793
}

Semantic roles & 50–950 ramp

primary
#B7A42B
secondary
#7581C9
accent
#59E543
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#151208
muted
#83817B

Preview Lab

Preview with #B7A42B

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

Preview Lab → · Contrast checker → · Palette generator →

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