#B7A62F#B7A62F

#B7A62F is a light, vivid yellow. Relative luminance 0.375; OKLCH L 71.9% C 0.134 H 100.9°. Best body text is #000000 at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#B7A62F
RGBrgb(183, 166, 47)
HSLhsl(53, 59%, 45%)
HSVhsv(53, 74%, 72%)
CMYKcmyk(0%, 9.3%, 74.3%, 28.2%)
CIE-LABlab(67.69, -6.89, 59.96)
CIE-LCHlch(67.69, 60.35, 96.56°)
OKLaboklab(71.91% -0.0253 0.132)
OKLCHoklch(71.91% 0.134 100.9)
XYZxyz(33.6793, 37.5465, 8.1620)
Luminance0.3755 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A62F #2F40B7
analogous
#B7622F #B7A62F #84B72F
triadic
#B7A62F #2FB7A6 #A62FB7
tetradic
#B7A62F #2FB762 #2F40B7 #B72F84
square
#B7A62F #2FB762 #2F40B7 #B72F84
split-complementary
#B7A62F #2F84B7 #622FB7
monochromatic
#564E16 #867A22 #B7A62F #D2C251 #DFD382

Accessibility & contrast

On white

2.47
#B7A62F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.51
#B7A62F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A62F
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A62F#FFFFFF#000000##000000
##B7A62F1.002.478.518.51
#FFFFFF2.471.0021.0021.00
#0000008.5121.001.001.00
##0000008.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A119
Deuteranopia (green-blind)
#BBA837
Tritanopia (blue-blind)
#C59A8F
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b7a62f;
/* rgb */ color: rgb(183, 166, 47);
/* oklch */ color: oklch(71.9% 0.134 100.9);
Tailwind
colors: {
  custom: {
    50: '#d0c070',
    500: '#b7a62f',
    950: '#000000',
  },
}
SCSS
$custom: #b7a62f;
$custom-light: #d0c070;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a62f",
  "rgb": {
    "r": 183,
    "g": 166,
    "b": 47
  },
  "hsl": {
    "h": 52.5,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.71908,
    "c": 0.13443,
    "h": 100.9
  },
  "luminance": 0.37545
}

Semantic roles & 50–950 ramp

primary
#B7A62F
secondary
#7A84C8
accent
#59E245
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B7A62F

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

Preview Lab → · Contrast checker → · Palette generator →

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