#B7B22B#B7B22B

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

Color values

HEX#B7B22B
RGBrgb(183, 178, 43)
HSLhsl(58, 62%, 44%)
HSVhsv(58, 77%, 72%)
CMYKcmyk(0%, 2.7%, 76.5%, 28.2%)
CIE-LABlab(70.93, -13.31, 64.34)
CIE-LCHlch(70.93, 65.70, 101.69°)
OKLaboklab(74.48% -0.0437 0.1406)
OKLCHoklch(74.48% 0.147 107.3)
XYZxyz(35.8863, 42.0838, 8.5177)
Luminance0.4208 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B22B #2B30B7
analogous
#B76C2B #B7B22B #76B72B
triadic
#B7B22B #2BB7B2 #B22BB7
tetradic
#B7B22B #2BB76C #2B30B7 #B72B76
square
#B7B22B #2BB76C #2B30B7 #B72B76
split-complementary
#B7B22B #2B76B7 #6C2BB7
monochromatic
#545214 #85821F #B7B22B #D5D04B #E0DD7C

Accessibility & contrast

On white

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

On black

9.42
#B7B22B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7B22B
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7B22B#FFFFFF#000000##000000
##B7B22B1.002.239.429.42
#FFFFFF2.231.0021.0021.00
#0000009.4221.001.001.00
##0000009.4221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b7b22b;
/* rgb */ color: rgb(183, 178, 43);
/* oklch */ color: oklch(74.5% 0.147 107.3);
Tailwind
colors: {
  custom: {
    50: '#d0c870',
    500: '#b7b22b',
    950: '#000000',
  },
}
SCSS
$custom: #b7b22b;
$custom-light: #d0c870;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b22b",
  "rgb": {
    "r": 183,
    "g": 178,
    "b": 43
  },
  "hsl": {
    "h": 57.857,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.74482,
    "c": 0.14723,
    "h": 107.3
  },
  "luminance": 0.42082
}

Semantic roles & 50–950 ramp

primary
#B7B22B
secondary
#7578C9
accent
#49E543
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B7B22B

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

Preview Lab → · Contrast checker → · Palette generator →

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