#B2B22A#B2B22A

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

Color values

HEX#B2B22A
RGBrgb(178, 178, 42)
HSLhsl(60, 62%, 43%)
HSVhsv(60, 76%, 70%)
CMYKcmyk(0%, 0%, 76.4%, 30.2%)
CIE-LABlab(70.51, -15.52, 64.12)
CIE-LCHlch(70.51, 65.97, 103.61°)
OKLaboklab(74.04% -0.0497 0.1401)
OKLCHoklch(74.04% 0.149 109.5)
XYZxyz(34.6997, 41.4740, 8.3675)
Luminance0.4147 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B22A #2A2AB2
analogous
#B26E2A #B2B22A #6EB22A
triadic
#B2B22A #2AB2B2 #B22AB2
tetradic
#B2B22A #2AB26E #2A2AB2 #B22A6E
square
#B2B22A #2AB26E #2A2AB2 #B22A6E
split-complementary
#B2B22A #2A6EB2 #6E2AB2
monochromatic
#4F4F13 #80801E #B2B22A #D3D346 #DFDF77

Accessibility & contrast

On white

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

On black

9.29
#B2B22A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B22A
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B22A#FFFFFF#000000##000000
##B2B22A1.002.269.299.29
#FFFFFF2.261.0021.0021.00
#0000009.2921.001.001.00
##0000009.2921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b2b22a;
/* rgb */ color: rgb(178, 178, 42);
/* oklch */ color: oklch(74.0% 0.149 109.5);
Tailwind
colors: {
  custom: {
    50: '#cdc86f',
    500: '#b2b22a',
    950: '#000000',
  },
}
SCSS
$custom: #b2b22a;
$custom-light: #cdc86f;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b22a",
  "rgb": {
    "r": 178,
    "g": 178,
    "b": 42
  },
  "hsl": {
    "h": 60,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.74043,
    "c": 0.14868,
    "h": 109.5
  },
  "luminance": 0.41473
}

Semantic roles & 50–950 ramp

primary
#B2B22A
secondary
#7171C7
accent
#43E543
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2B22A

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

Preview Lab → · Contrast checker → · Palette generator →

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