#B7A22A#B7A22A

#B7A22A is a light, vivid yellow. Relative luminance 0.361; OKLCH L 71.0% C 0.134 H 98.8°. Best body text is #000000 at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#B7A22A
RGBrgb(183, 162, 42)
HSLhsl(51, 63%, 44%)
HSVhsv(51, 77%, 72%)
CMYKcmyk(0%, 11.5%, 77%, 28.2%)
CIE-LABlab(66.58, -4.99, 60.68)
CIE-LCHlch(66.58, 60.88, 94.70°)
OKLaboklab(71.02% -0.0204 0.1326)
OKLCHoklch(71.02% 0.134 98.8)
XYZxyz(32.8684, 36.0768, 7.4223)
Luminance0.3608 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A22A #2A3FB7
analogous
#B75C2A #B7A22A #86B72A
triadic
#B7A22A #2AB7A2 #A22AB7
tetradic
#B7A22A #2AB75C #2A3FB7 #B72A86
square
#B7A22A #2AB75C #2A3FB7 #B72A86
split-complementary
#B7A22A #2A86B7 #5C2AB7
monochromatic
#534A13 #85761F #B7A22A #D5C049 #E1D17B

Accessibility & contrast

On white

2.56
#B7A22A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.22
#B7A22A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A22A
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A22A#FFFFFF#000000##000000
##B7A22A1.002.568.228.22
#FFFFFF2.561.0021.0021.00
#0000008.2221.001.001.00
##0000008.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E10
Deuteranopia (green-blind)
#B8A532
Tritanopia (blue-blind)
#C6958B
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b7a22a;
/* rgb */ color: rgb(183, 162, 42);
/* oklch */ color: oklch(71.0% 0.134 98.8);
Tailwind
colors: {
  custom: {
    50: '#d1bd6d',
    500: '#b7a22a',
    950: '#000000',
  },
}
SCSS
$custom: #b7a22a;
$custom-light: #d1bd6d;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a22a",
  "rgb": {
    "r": 183,
    "g": 162,
    "b": 42
  },
  "hsl": {
    "h": 51.064,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.71021,
    "c": 0.13414,
    "h": 98.8
  },
  "luminance": 0.36075
}

Semantic roles & 50–950 ramp

primary
#B7A22A
secondary
#7481C9
accent
#5AE642
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#151208
muted
#83817B

Preview Lab

Preview with #B7A22A

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

Preview Lab → · Contrast checker → · Palette generator →

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