#B8B22B#B8B22B

#B8B22B is a light, vivid yellow. Relative luminance 0.422; OKLCH L 74.6% C 0.147 H 106.8°. Best body text is #000000 at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#B8B22B
RGBrgb(184, 178, 43)
HSLhsl(57, 62%, 45%)
HSVhsv(57, 77%, 72%)
CMYKcmyk(0%, 3.3%, 76.6%, 27.8%)
CIE-LABlab(71.01, -12.88, 64.45)
CIE-LCHlch(71.01, 65.72, 101.30°)
OKLaboklab(74.57% -0.0426 0.1408)
OKLCHoklch(74.57% 0.147 106.8)
XYZxyz(36.1251, 42.2069, 8.5289)
Luminance0.4221 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B22B #2B31B8
analogous
#B86C2B #B8B22B #78B82B
triadic
#B8B22B #2BB8B2 #B22BB8
tetradic
#B8B22B #2BB86C #2B31B8 #B82B78
square
#B8B22B #2BB86C #2B31B8 #B82B78
split-complementary
#B8B22B #2B78B8 #6C2BB8
monochromatic
#555214 #86821F #B8B22B #D5CF4B #E1DC7D

Accessibility & contrast

On white

2.22
#B8B22B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.44
#B8B22B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B22B
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B22B#FFFFFF#000000##000000
##B8B22B1.002.229.449.44
#FFFFFF2.221.0021.0021.00
#0000009.4421.001.001.00
##0000009.4421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b8b22b;
/* rgb */ color: rgb(184, 178, 43);
/* oklch */ color: oklch(74.6% 0.147 106.8);
Tailwind
colors: {
  custom: {
    50: '#d1c870',
    500: '#b8b22b',
    950: '#000000',
  },
}
SCSS
$custom: #b8b22b;
$custom-light: #d1c870;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b22b",
  "rgb": {
    "r": 184,
    "g": 178,
    "b": 43
  },
  "hsl": {
    "h": 57.447,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.7457,
    "c": 0.14707,
    "h": 106.8
  },
  "luminance": 0.42206
}

Semantic roles & 50–950 ramp

primary
#B8B22B
secondary
#7679C9
accent
#4AE543
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B8B22B

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

Preview Lab → · Contrast checker → · Palette generator →

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