#B2B431#B2B431

#B2B431 is a light, vivid yellow. Relative luminance 0.423; OKLCH L 74.5% C 0.147 H 110.4°. Best body text is #000000 at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#B2B431
RGBrgb(178, 180, 49)
HSLhsl(61, 57%, 45%)
HSVhsv(61, 73%, 71%)
CMYKcmyk(1.1%, 0%, 72.8%, 29.4%)
CIE-LABlab(71.10, -16.23, 62.35)
CIE-LCHlch(71.10, 64.42, 104.59°)
OKLaboklab(74.53% -0.0511 0.1376)
OKLCHoklch(74.53% 0.147 110.4)
XYZxyz(35.2370, 42.3302, 9.2195)
Luminance0.4233 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B431 #3331B4
analogous
#B47531 #B2B431 #71B431
triadic
#B2B431 #31B2B4 #B431B2
tetradic
#B2B431 #31B475 #3331B4 #B43171
square
#B2B431 #31B475 #3331B4 #B43171
split-complementary
#B2B431 #3171B4 #7531B4
monochromatic
#535417 #828424 #B2B431 #CED052 #DCDD82

Accessibility & contrast

On white

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

On black

9.47
#B2B431 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B431
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B431#FFFFFF#000000##000000
##B2B4311.002.229.479.47
#FFFFFF2.221.0021.0021.00
#0000009.4721.001.001.00
##0000009.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC17
Deuteranopia (green-blind)
#C4B03B
Tritanopia (blue-blind)
#BFA99B
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b2b431;
/* rgb */ color: rgb(178, 180, 49);
/* oklch */ color: oklch(74.5% 0.147 110.4);
Tailwind
colors: {
  custom: {
    50: '#cdca73',
    500: '#b2b431',
    950: '#000000',
  },
}
SCSS
$custom: #b2b431;
$custom-light: #cdca73;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b431",
  "rgb": {
    "r": 178,
    "g": 180,
    "b": 49
  },
  "hsl": {
    "h": 60.916,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.74527,
    "c": 0.14681,
    "h": 110.4
  },
  "luminance": 0.42329
}

Semantic roles & 50–950 ramp

primary
#B2B431
secondary
#7C7BC6
accent
#47E04A
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B2B431

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

Preview Lab → · Contrast checker → · Palette generator →

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