#B7A22C#B7A22C

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

Color values

HEX#B7A22C
RGBrgb(183, 162, 44)
HSLhsl(51, 61%, 45%)
HSVhsv(51, 76%, 72%)
CMYKcmyk(0%, 11.5%, 76%, 28.2%)
CIE-LABlab(66.59, -4.91, 59.99)
CIE-LCHlch(66.59, 60.19, 94.68°)
OKLaboklab(71.03% -0.02 0.1315)
OKLCHoklch(71.03% 0.133 98.7)
XYZxyz(32.9050, 36.0915, 7.6155)
Luminance0.3609 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A22C #2C41B7
analogous
#B75C2C #B7A22C #87B72C
triadic
#B7A22C #2CB7A2 #A22CB7
tetradic
#B7A22C #2CB75C #2C41B7 #B72C87
square
#B7A22C #2CB75C #2C41B7 #B72C87
split-complementary
#B7A22C #2C87B7 #5C2CB7
monochromatic
#544B14 #867620 #B7A22C #D4BF4C #E0D17E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7A22C#FFFFFF#000000##000000
##B7A22C1.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)
#B29E15
Deuteranopia (green-blind)
#B8A534
Tritanopia (blue-blind)
#C6968B
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b7a22c;
/* rgb */ color: rgb(183, 162, 44);
/* oklch */ color: oklch(71.0% 0.133 98.7);
Tailwind
colors: {
  custom: {
    50: '#d1bd6e',
    500: '#b7a22c',
    950: '#000000',
  },
}
SCSS
$custom: #b7a22c;
$custom-light: #d1bd6e;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a22c",
  "rgb": {
    "r": 183,
    "g": 162,
    "b": 44
  },
  "hsl": {
    "h": 50.935,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.71034,
    "c": 0.13302,
    "h": 98.7
  },
  "luminance": 0.3609
}

Semantic roles & 50–950 ramp

primary
#B7A22C
secondary
#7683C8
accent
#5CE443
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#151208
muted
#83817B

Preview Lab

Preview with #B7A22C

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

Preview Lab → · Contrast checker → · Palette generator →

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