#B8B22C#B8B22C

#B8B22C 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#B8B22C
RGBrgb(184, 178, 44)
HSLhsl(57, 61%, 45%)
HSVhsv(57, 76%, 72%)
CMYKcmyk(0%, 3.3%, 76.1%, 27.8%)
CIE-LABlab(71.02, -12.84, 64.13)
CIE-LCHlch(71.02, 65.40, 101.32°)
OKLaboklab(74.58% -0.0424 0.1403)
OKLCHoklch(74.58% 0.147 106.8)
XYZxyz(36.1437, 42.2143, 8.6267)
Luminance0.4221 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B22C #2C32B8
analogous
#B86C2C #B8B22C #78B82C
triadic
#B8B22C #2CB8B2 #B22CB8
tetradic
#B8B22C #2CB86C #2C32B8 #B82C78
square
#B8B22C #2CB86C #2C32B8 #B82C78
split-complementary
#B8B22C #2C78B8 #6C2CB8
monochromatic
#555214 #878220 #B8B22C #D4CF4D #E0DC7E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B8B22C#FFFFFF#000000##000000
##B8B22C1.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)
#C2AB0B
Deuteranopia (green-blind)
#C4B037
Tritanopia (blue-blind)
#C6A699
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b8b22c;
/* rgb */ color: rgb(184, 178, 44);
/* oklch */ color: oklch(74.6% 0.147 106.8);
Tailwind
colors: {
  custom: {
    50: '#d1c870',
    500: '#b8b22c',
    950: '#000000',
  },
}
SCSS
$custom: #b8b22c;
$custom-light: #d1c870;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b22c",
  "rgb": {
    "r": 184,
    "g": 178,
    "b": 44
  },
  "hsl": {
    "h": 57.429,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.74576,
    "c": 0.14655,
    "h": 106.8
  },
  "luminance": 0.42213
}

Semantic roles & 50–950 ramp

primary
#B8B22C
secondary
#777BC9
accent
#4AE543
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B8B22C

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

Preview Lab → · Contrast checker → · Palette generator →

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