#B7B22A#B7B22A

#B7B22A is a light, vivid yellow. Relative luminance 0.421; OKLCH L 74.5% C 0.148 H 107.3°. Best body text is #000000 at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#B7B22A
RGBrgb(183, 178, 42)
HSLhsl(58, 63%, 44%)
HSVhsv(58, 77%, 72%)
CMYKcmyk(0%, 2.7%, 77%, 28.2%)
CIE-LABlab(70.92, -13.35, 64.65)
CIE-LCHlch(70.92, 66.02, 101.67°)
OKLaboklab(74.48% -0.0439 0.1411)
OKLCHoklch(74.48% 0.148 107.3)
XYZxyz(35.8682, 42.0765, 8.4222)
Luminance0.4208 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B22A #2A2FB7
analogous
#B76C2A #B7B22A #76B72A
triadic
#B7B22A #2AB7B2 #B22AB7
tetradic
#B7B22A #2AB76C #2A2FB7 #B72A76
square
#B7B22A #2AB76C #2A2FB7 #B72A76
split-complementary
#B7B22A #2A76B7 #6C2AB7
monochromatic
#535113 #85821F #B7B22A #D5D049 #E1DD7B

Accessibility & contrast

On white

2.23
#B7B22A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.41
#B7B22A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7B22A
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7B22A#FFFFFF#000000##000000
##B7B22A1.002.239.419.41
#FFFFFF2.231.0021.0021.00
#0000009.4121.001.001.00
##0000009.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB04
Deuteranopia (green-blind)
#C4B035
Tritanopia (blue-blind)
#C5A699
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b7b22a;
/* rgb */ color: rgb(183, 178, 42);
/* oklch */ color: oklch(74.5% 0.148 107.3);
Tailwind
colors: {
  custom: {
    50: '#d0c86f',
    500: '#b7b22a',
    950: '#000000',
  },
}
SCSS
$custom: #b7b22a;
$custom-light: #d0c86f;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b22a",
  "rgb": {
    "r": 183,
    "g": 178,
    "b": 42
  },
  "hsl": {
    "h": 57.872,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.74477,
    "c": 0.14775,
    "h": 107.3
  },
  "luminance": 0.42075
}

Semantic roles & 50–950 ramp

primary
#B7B22A
secondary
#7477C9
accent
#48E642
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B7B22A

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

Preview Lab → · Contrast checker → · Palette generator →

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