#B7A22E#B7A22E

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

Color values

HEX#B7A22E
RGBrgb(183, 162, 46)
HSLhsl(51, 60%, 45%)
HSVhsv(51, 75%, 72%)
CMYKcmyk(0%, 11.5%, 74.9%, 28.2%)
CIE-LABlab(66.60, -4.82, 59.29)
CIE-LCHlch(66.60, 59.48, 94.65°)
OKLaboklab(71.05% -0.0196 0.1304)
OKLCHoklch(71.05% 0.132 98.5)
XYZxyz(32.9435, 36.1069, 7.8183)
Luminance0.3610 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A22E #2E43B7
analogous
#B75E2E #B7A22E #87B72E
triadic
#B7A22E #2EB7A2 #A22EB7
tetradic
#B7A22E #2EB75E #2E43B7 #B72E87
square
#B7A22E #2EB75E #2E43B7 #B72E87
split-complementary
#B7A22E #2E87B7 #5E2EB7
monochromatic
#554B15 #867722 #B7A22E #D3BF4F #DFD180

Accessibility & contrast

On white

2.55
#B7A22E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7A22E#FFFFFF#000000##000000
##B7A22E1.002.558.228.22
#FFFFFF2.551.0021.0021.00
#0000008.2221.001.001.00
##0000008.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E19
Deuteranopia (green-blind)
#B8A536
Tritanopia (blue-blind)
#C6968C
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b7a22e;
/* rgb */ color: rgb(183, 162, 46);
/* oklch */ color: oklch(71.0% 0.132 98.5);
Tailwind
colors: {
  custom: {
    50: '#d0bd6f',
    500: '#b7a22e',
    950: '#000000',
  },
}
SCSS
$custom: #b7a22e;
$custom-light: #d0bd6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a22e",
  "rgb": {
    "r": 183,
    "g": 162,
    "b": 46
  },
  "hsl": {
    "h": 50.803,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.71047,
    "c": 0.13187,
    "h": 98.5
  },
  "luminance": 0.36105
}

Semantic roles & 50–950 ramp

primary
#B7A22E
secondary
#7985C8
accent
#5DE345
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B7A22E

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

Preview Lab → · Contrast checker → · Palette generator →

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