#B2B31D#B2B31D

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

Color values

HEX#B2B31D
RGBrgb(178, 179, 29)
HSLhsl(60, 72%, 41%)
HSVhsv(60, 84%, 70%)
CMYKcmyk(0.6%, 0%, 83.8%, 29.8%)
CIE-LABlab(70.73, -16.47, 67.91)
CIE-LCHlch(70.73, 69.88, 103.63°)
OKLaboklab(74.2% -0.0533 0.1459)
OKLCHoklch(74.2% 0.155 110.1)
XYZxyz(34.7033, 41.7949, 7.4013)
Luminance0.4179 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B31D #1E1DB3
analogous
#B3691D #B2B31D #67B31D
triadic
#B2B31D #1DB2B3 #B31DB2
tetradic
#B2B31D #1DB369 #1E1DB3 #B31D67
square
#B2B31D #1DB369 #1E1DB3 #B31D67
split-complementary
#B2B31D #1D67B3 #691DB3
monochromatic
#494A0C #7E7E14 #B2B31D #DCDD30 #E5E664

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2B31D#FFFFFF#000000##000000
##B2B31D1.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)
#C3AF2D
Tritanopia (blue-blind)
#BFA799
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b2b31d;
/* rgb */ color: rgb(178, 179, 29);
/* oklch */ color: oklch(74.2% 0.155 110.1);
Tailwind
colors: {
  custom: {
    50: '#cdc96a',
    500: '#b2b31d',
    950: '#000000',
  },
}
SCSS
$custom: #b2b31d;
$custom-light: #cdc96a;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b31d",
  "rgb": {
    "r": 178,
    "g": 179,
    "b": 29
  },
  "hsl": {
    "h": 60.4,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.74203,
    "c": 0.15538,
    "h": 110.1
  },
  "luminance": 0.41794
}

Semantic roles & 50–950 ramp

primary
#B2B31D
secondary
#6261CB
accent
#39EF3A
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #B2B31D

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

Preview Lab → · Contrast checker → · Palette generator →

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