#B7A42D#B7A42D

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

Color values

HEX#B7A42D
RGBrgb(183, 164, 45)
HSLhsl(52, 61%, 45%)
HSVhsv(52, 75%, 72%)
CMYKcmyk(0%, 10.4%, 75.4%, 28.2%)
CIE-LABlab(67.13, -5.92, 60.15)
CIE-LCHlch(67.13, 60.44, 95.63°)
OKLaboklab(71.47% -0.0228 0.132)
OKLCHoklch(71.47% 0.134 99.8)
XYZxyz(33.2792, 36.8093, 7.8341)
Luminance0.3681 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A42D #2D40B7
analogous
#B75F2D #B7A42D #85B72D
triadic
#B7A42D #2DB7A4 #A42DB7
tetradic
#B7A42D #2DB75F #2D40B7 #B72D85
square
#B7A42D #2DB75F #2D40B7 #B72D85
split-complementary
#B7A42D #2D85B7 #5F2DB7
monochromatic
#554C15 #867821 #B7A42D #D3C14E #DFD27F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7A42D#FFFFFF#000000##000000
##B7A42D1.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)
#B49F16
Deuteranopia (green-blind)
#B9A635
Tritanopia (blue-blind)
#C5988D
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b7a42d;
/* rgb */ color: rgb(183, 164, 45);
/* oklch */ color: oklch(71.5% 0.134 99.8);
Tailwind
colors: {
  custom: {
    50: '#d0be6f',
    500: '#b7a42d',
    950: '#000000',
  },
}
SCSS
$custom: #b7a42d;
$custom-light: #d0be6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a42d",
  "rgb": {
    "r": 183,
    "g": 164,
    "b": 45
  },
  "hsl": {
    "h": 51.739,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.71467,
    "c": 0.13399,
    "h": 99.8
  },
  "luminance": 0.36808
}

Semantic roles & 50–950 ramp

primary
#B7A42D
secondary
#7883C8
accent
#5AE444
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B7A42D

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

Preview Lab → · Contrast checker → · Palette generator →

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