#B2B22F#B2B22F

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

Color values

HEX#B2B22F
RGBrgb(178, 178, 47)
HSLhsl(60, 58%, 44%)
HSVhsv(60, 74%, 70%)
CMYKcmyk(0%, 0%, 73.6%, 30.2%)
CIE-LABlab(70.53, -15.31, 62.50)
CIE-LCHlch(70.53, 64.35, 103.76°)
OKLaboklab(74.07% -0.0487 0.1376)
OKLCHoklch(74.07% 0.146 109.5)
XYZxyz(34.7949, 41.5120, 8.8685)
Luminance0.4151 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B22F #2F2FB2
analogous
#B2712F #B2B22F #71B22F
triadic
#B2B22F #2FB2B2 #B22FB2
tetradic
#B2B22F #2FB271 #2F2FB2 #B22F71
square
#B2B22F #2FB271 #2F2FB2 #B22F71
split-complementary
#B2B22F #2F71B2 #712FB2
monochromatic
#515115 #828222 #B2B22F #D0D04E #DDDD7E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2B22F#FFFFFF#000000##000000
##B2B22F1.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)
#C1AA14
Deuteranopia (green-blind)
#C2AE39
Tritanopia (blue-blind)
#BFA699
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b2b22f;
/* rgb */ color: rgb(178, 178, 47);
/* oklch */ color: oklch(74.1% 0.146 109.5);
Tailwind
colors: {
  custom: {
    50: '#cdc872',
    500: '#b2b22f',
    950: '#000000',
  },
}
SCSS
$custom: #b2b22f;
$custom-light: #cdc872;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b22f",
  "rgb": {
    "r": 178,
    "g": 178,
    "b": 47
  },
  "hsl": {
    "h": 60,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.74072,
    "c": 0.14596,
    "h": 109.5
  },
  "luminance": 0.41511
}

Semantic roles & 50–950 ramp

primary
#B2B22F
secondary
#7777C6
accent
#46E146
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2B22F

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

Preview Lab → · Contrast checker → · Palette generator →

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