#B2B22B#B2B22B

#B2B22B is a light, vivid yellow. Relative luminance 0.415; OKLCH L 74.0% C 0.148 H 109.5°. Best body text is #000000 at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#B2B22B
RGBrgb(178, 178, 43)
HSLhsl(60, 61%, 43%)
HSVhsv(60, 76%, 70%)
CMYKcmyk(0%, 0%, 75.8%, 30.2%)
CIE-LABlab(70.51, -15.48, 63.81)
CIE-LCHlch(70.51, 65.66, 103.64°)
OKLaboklab(74.05% -0.0495 0.1396)
OKLCHoklch(74.05% 0.148 109.5)
XYZxyz(34.7178, 41.4812, 8.4629)
Luminance0.4148 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B22B #2B2BB2
analogous
#B26E2B #B2B22B #6EB22B
triadic
#B2B22B #2BB2B2 #B22BB2
tetradic
#B2B22B #2BB26E #2B2BB2 #B22B6E
square
#B2B22B #2BB26E #2B2BB2 #B22B6E
split-complementary
#B2B22B #2B6EB2 #6E2BB2
monochromatic
#4F4F13 #81811F #B2B22B #D3D348 #DFDF79

Accessibility & contrast

On white

2.26
#B2B22B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.30
#B2B22B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B22B
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B22B#FFFFFF#000000##000000
##B2B22B1.002.269.309.30
#FFFFFF2.261.0021.0021.00
#0000009.3021.001.001.00
##0000009.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AA07
Deuteranopia (green-blind)
#C2AE36
Tritanopia (blue-blind)
#BFA699
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b2b22b;
/* rgb */ color: rgb(178, 178, 43);
/* oklch */ color: oklch(74.0% 0.148 109.5);
Tailwind
colors: {
  custom: {
    50: '#cdc870',
    500: '#b2b22b',
    950: '#000000',
  },
}
SCSS
$custom: #b2b22b;
$custom-light: #cdc870;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b22b",
  "rgb": {
    "r": 178,
    "g": 178,
    "b": 43
  },
  "hsl": {
    "h": 60,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.74048,
    "c": 0.14816,
    "h": 109.5
  },
  "luminance": 0.4148
}

Semantic roles & 50–950 ramp

primary
#B2B22B
secondary
#7272C7
accent
#44E444
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2B22B

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

Preview Lab → · Contrast checker → · Palette generator →

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