#B7A42E#B7A42E

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

Color values

HEX#B7A42E
RGBrgb(183, 164, 46)
HSLhsl(52, 60%, 45%)
HSVhsv(52, 75%, 72%)
CMYKcmyk(0%, 10.4%, 74.9%, 28.2%)
CIE-LABlab(67.14, -5.88, 59.80)
CIE-LCHlch(67.14, 60.09, 95.62°)
OKLaboklab(71.47% -0.0226 0.1315)
OKLCHoklch(71.47% 0.133 99.7)
XYZxyz(33.2987, 36.8171, 7.9367)
Luminance0.3681 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A42E #2E41B7
analogous
#B7602E #B7A42E #85B72E
triadic
#B7A42E #2EB7A4 #A42EB7
tetradic
#B7A42E #2EB760 #2E41B7 #B72E85
square
#B7A42E #2EB760 #2E41B7 #B72E85
split-complementary
#B7A42E #2E85B7 #602EB7
monochromatic
#554C15 #867822 #B7A42E #D3C14F #DFD280

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7A42E#FFFFFF#000000##000000
##B7A42E1.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)
#B49F18
Deuteranopia (green-blind)
#B9A636
Tritanopia (blue-blind)
#C5988D
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b7a42e;
/* rgb */ color: rgb(183, 164, 46);
/* oklch */ color: oklch(71.5% 0.133 99.7);
Tailwind
colors: {
  custom: {
    50: '#d0be70',
    500: '#b7a42e',
    950: '#000000',
  },
}
SCSS
$custom: #b7a42e;
$custom-light: #d0be70;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a42e",
  "rgb": {
    "r": 183,
    "g": 164,
    "b": 46
  },
  "hsl": {
    "h": 51.679,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.71473,
    "c": 0.13341,
    "h": 99.7
  },
  "luminance": 0.36815
}

Semantic roles & 50–950 ramp

primary
#B7A42E
secondary
#7984C8
accent
#5BE345
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B7A42E

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

Preview Lab → · Contrast checker → · Palette generator →

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