#B2B229#B2B229

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

Color values

HEX#B2B229
RGBrgb(178, 178, 41)
HSLhsl(60, 63%, 43%)
HSVhsv(60, 77%, 70%)
CMYKcmyk(0%, 0%, 77%, 30.2%)
CIE-LABlab(70.50, -15.56, 64.43)
CIE-LCHlch(70.50, 66.28, 103.58°)
OKLaboklab(74.04% -0.0499 0.1406)
OKLCHoklch(74.04% 0.149 109.6)
XYZxyz(34.6820, 41.4669, 8.2744)
Luminance0.4147 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B229 #2929B2
analogous
#B26D29 #B2B229 #6DB229
triadic
#B2B229 #29B2B2 #B229B2
tetradic
#B2B229 #29B26D #2929B2 #B2296D
square
#B2B229 #29B26D #2929B2 #B2296D
split-complementary
#B2B229 #296DB2 #6D29B2
monochromatic
#4F4F12 #80801E #B2B229 #D4D444 #DFDF76

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2B229#FFFFFF#000000##000000
##B2B2291.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)
#C1AA01
Deuteranopia (green-blind)
#C2AE35
Tritanopia (blue-blind)
#BFA699
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b2b229;
/* rgb */ color: rgb(178, 178, 41);
/* oklch */ color: oklch(74.0% 0.149 109.6);
Tailwind
colors: {
  custom: {
    50: '#cdc86f',
    500: '#b2b229',
    950: '#000000',
  },
}
SCSS
$custom: #b2b229;
$custom-light: #cdc86f;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b229",
  "rgb": {
    "r": 178,
    "g": 178,
    "b": 41
  },
  "hsl": {
    "h": 60,
    "s": 62.557,
    "l": 42.941
  },
  "oklch": {
    "l": 0.74037,
    "c": 0.1492,
    "h": 109.6
  },
  "luminance": 0.41466
}

Semantic roles & 50–950 ramp

primary
#B2B229
secondary
#7070C7
accent
#42E642
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2B229

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

Preview Lab → · Contrast checker → · Palette generator →

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