#B8B22E#B8B22E

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

Color values

HEX#B8B22E
RGBrgb(184, 178, 46)
HSLhsl(57, 60%, 45%)
HSVhsv(57, 75%, 72%)
CMYKcmyk(0%, 3.3%, 75%, 27.8%)
CIE-LABlab(71.03, -12.75, 63.48)
CIE-LCHlch(71.03, 64.75, 101.36°)
OKLaboklab(74.59% -0.042 0.1393)
OKLCHoklch(74.59% 0.145 106.8)
XYZxyz(36.1822, 42.2297, 8.8295)
Luminance0.4223 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B22E #2E34B8
analogous
#B86D2E #B8B22E #79B82E
triadic
#B8B22E #2EB8B2 #B22EB8
tetradic
#B8B22E #2EB86D #2E34B8 #B82E79
square
#B8B22E #2EB86D #2E34B8 #B82E79
split-complementary
#B8B22E #2E79B8 #6D2EB8
monochromatic
#565316 #878322 #B8B22E #D3CE50 #DFDB81

Accessibility & contrast

On white

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

On black

9.45
#B8B22E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B22E
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B22E#FFFFFF#000000##000000
##B8B22E1.002.229.459.45
#FFFFFF2.221.0021.0021.00
#0000009.4521.001.001.00
##0000009.4521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b8b22e;
/* rgb */ color: rgb(184, 178, 46);
/* oklch */ color: oklch(74.6% 0.145 106.8);
Tailwind
colors: {
  custom: {
    50: '#d1c871',
    500: '#b8b22e',
    950: '#000000',
  },
}
SCSS
$custom: #b8b22e;
$custom-light: #d1c871;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b22e",
  "rgb": {
    "r": 184,
    "g": 178,
    "b": 46
  },
  "hsl": {
    "h": 57.391,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.74588,
    "c": 0.14547,
    "h": 106.8
  },
  "luminance": 0.42228
}

Semantic roles & 50–950 ramp

primary
#B8B22E
secondary
#797DC8
accent
#4CE345
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B8B22E

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

Preview Lab → · Contrast checker → · Palette generator →

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