#B2B31A#B2B31A

#B2B31A is a light, vivid yellow. Relative luminance 0.418; OKLCH L 74.2% C 0.156 H 110.1°. Best body text is #000000 at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#B2B31A
RGBrgb(178, 179, 26)
HSLhsl(60, 75%, 40%)
HSVhsv(60, 85%, 70%)
CMYKcmyk(0.6%, 0%, 85.5%, 29.8%)
CIE-LABlab(70.72, -16.55, 68.58)
CIE-LCHlch(70.72, 70.55, 103.56°)
OKLaboklab(74.19% -0.0537 0.1469)
OKLCHoklch(74.19% 0.156 110.1)
XYZxyz(34.6680, 41.7808, 7.2154)
Luminance0.4178 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B31A #1B1AB3
analogous
#B3671A #B2B31A #66B31A
triadic
#B2B31A #1AB2B3 #B31AB2
tetradic
#B2B31A #1AB367 #1B1AB3 #B31A66
square
#B2B31A #1AB367 #1B1AB3 #B31A66
split-complementary
#B2B31A #1A66B3 #671AB3
monochromatic
#48480A #7D7E12 #B2B31A #DFE02A #E7E860

Accessibility & contrast

On white

2.24
#B2B31A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.36
#B2B31A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B31A
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B31A#FFFFFF#000000##000000
##B2B31A1.002.249.369.36
#FFFFFF2.241.0021.0021.00
#0000009.3621.001.001.00
##0000009.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AB00
Deuteranopia (green-blind)
#C4AF2B
Tritanopia (blue-blind)
#BFA799
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b2b31a;
/* rgb */ color: rgb(178, 179, 26);
/* oklch */ color: oklch(74.2% 0.156 110.1);
Tailwind
colors: {
  custom: {
    50: '#cdc969',
    500: '#b2b31a',
    950: '#000000',
  },
}
SCSS
$custom: #b2b31a;
$custom-light: #cdc969;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b31a",
  "rgb": {
    "r": 178,
    "g": 179,
    "b": 26
  },
  "hsl": {
    "h": 60.392,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.74192,
    "c": 0.15642,
    "h": 110.1
  },
  "luminance": 0.4178
}

Semantic roles & 50–950 ramp

primary
#B2B31A
secondary
#5D5DCC
accent
#37F138
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #B2B31A

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

Preview Lab → · Contrast checker → · Palette generator →

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