#B7A42A#B7A42A

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

Color values

HEX#B7A42A
RGBrgb(183, 164, 42)
HSLhsl(52, 63%, 44%)
HSVhsv(52, 77%, 72%)
CMYKcmyk(0%, 10.4%, 77%, 28.2%)
CIE-LABlab(67.12, -6.05, 61.17)
CIE-LCHlch(67.12, 61.47, 95.65°)
OKLaboklab(71.45% -0.0234 0.1336)
OKLCHoklch(71.45% 0.136 99.9)
XYZxyz(33.2235, 36.7870, 7.5407)
Luminance0.3679 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A42A #2A3DB7
analogous
#B75E2A #B7A42A #84B72A
triadic
#B7A42A #2AB7A4 #A42AB7
tetradic
#B7A42A #2AB75E #2A3DB7 #B72A84
square
#B7A42A #2AB75E #2A3DB7 #B72A84
split-complementary
#B7A42A #2A84B7 #5E2AB7
monochromatic
#534B13 #85771F #B7A42A #D5C249 #E1D37B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7A42A#FFFFFF#000000##000000
##B7A42A1.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)
#B49F0F
Deuteranopia (green-blind)
#BAA633
Tritanopia (blue-blind)
#C6988D
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b7a42a;
/* rgb */ color: rgb(183, 164, 42);
/* oklch */ color: oklch(71.4% 0.136 99.9);
Tailwind
colors: {
  custom: {
    50: '#d1be6e',
    500: '#b7a42a',
    950: '#000000',
  },
}
SCSS
$custom: #b7a42a;
$custom-light: #d1be6e;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a42a",
  "rgb": {
    "r": 183,
    "g": 164,
    "b": 42
  },
  "hsl": {
    "h": 51.915,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.71448,
    "c": 0.13567,
    "h": 99.9
  },
  "luminance": 0.36785
}

Semantic roles & 50–950 ramp

primary
#B7A42A
secondary
#747FC9
accent
#58E642
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#151208
muted
#83817B

Preview Lab

Preview with #B7A42A

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

Preview Lab → · Contrast checker → · Palette generator →

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