#B8B22D#B8B22D

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

Color values

HEX#B8B22D
RGBrgb(184, 178, 45)
HSLhsl(57, 61%, 45%)
HSVhsv(57, 76%, 72%)
CMYKcmyk(0%, 3.3%, 75.5%, 27.8%)
CIE-LABlab(71.02, -12.79, 63.81)
CIE-LCHlch(71.02, 65.08, 101.34°)
OKLaboklab(74.58% -0.0422 0.1398)
OKLCHoklch(74.58% 0.146 106.8)
XYZxyz(36.1627, 42.2219, 8.7269)
Luminance0.4222 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B22D #2D33B8
analogous
#B86C2D #B8B22D #79B82D
triadic
#B8B22D #2DB8B2 #B22DB8
tetradic
#B8B22D #2DB86C #2D33B8 #B82D79
square
#B8B22D #2DB86C #2D33B8 #B82D79
split-complementary
#B8B22D #2D79B8 #6C2DB8
monochromatic
#565315 #878221 #B8B22D #D4CE4E #E0DC80

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B8B22D#FFFFFF#000000##000000
##B8B22D1.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)
#C1AB0E
Deuteranopia (green-blind)
#C4B038
Tritanopia (blue-blind)
#C6A699
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b8b22d;
/* rgb */ color: rgb(184, 178, 45);
/* oklch */ color: oklch(74.6% 0.146 106.8);
Tailwind
colors: {
  custom: {
    50: '#d1c871',
    500: '#b8b22d',
    950: '#000000',
  },
}
SCSS
$custom: #b8b22d;
$custom-light: #d1c871;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b22d",
  "rgb": {
    "r": 184,
    "g": 178,
    "b": 45
  },
  "hsl": {
    "h": 57.41,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.74582,
    "c": 0.14601,
    "h": 106.8
  },
  "luminance": 0.42221
}

Semantic roles & 50–950 ramp

primary
#B8B22D
secondary
#787CC9
accent
#4BE444
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B8B22D

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

Preview Lab → · Contrast checker → · Palette generator →

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