#B2B31C#B2B31C

#B2B31C 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#B2B31C
RGBrgb(178, 179, 28)
HSLhsl(60, 73%, 41%)
HSVhsv(60, 84%, 70%)
CMYKcmyk(0.6%, 0%, 84.4%, 29.8%)
CIE-LABlab(70.73, -16.49, 68.14)
CIE-LCHlch(70.73, 70.11, 103.61°)
OKLaboklab(74.2% -0.0535 0.1463)
OKLCHoklch(74.2% 0.156 110.1)
XYZxyz(34.6912, 41.7901, 7.3373)
Luminance0.4179 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B31C #1D1CB3
analogous
#B3681C #B2B31C #67B31C
triadic
#B2B31C #1CB2B3 #B31CB2
tetradic
#B2B31C #1CB368 #1D1CB3 #B31C67
square
#B2B31C #1CB368 #1D1CB3 #B31C67
split-complementary
#B2B31C #1C67B3 #681CB3
monochromatic
#49490B #7D7E14 #B2B31C #DDDE2E #E6E763

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #b2b31c;
/* rgb */ color: rgb(178, 179, 28);
/* oklch */ color: oklch(74.2% 0.156 110.1);
Tailwind
colors: {
  custom: {
    50: '#cdc96a',
    500: '#b2b31c',
    950: '#000000',
  },
}
SCSS
$custom: #b2b31c;
$custom-light: #cdc96a;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b31c",
  "rgb": {
    "r": 178,
    "g": 179,
    "b": 28
  },
  "hsl": {
    "h": 60.397,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.742,
    "c": 0.15573,
    "h": 110.1
  },
  "luminance": 0.41789
}

Semantic roles & 50–950 ramp

primary
#B2B31C
secondary
#605FCB
accent
#38F039
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #B2B31C

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

Preview Lab → · Contrast checker → · Palette generator →

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