#B2B31E#B2B31E

#B2B31E 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#B2B31E
RGBrgb(178, 179, 30)
HSLhsl(60, 71%, 41%)
HSVhsv(60, 83%, 70%)
CMYKcmyk(0.6%, 0%, 83.2%, 29.8%)
CIE-LABlab(70.73, -16.44, 67.67)
CIE-LCHlch(70.73, 69.64, 103.65°)
OKLaboklab(74.21% -0.0532 0.1456)
OKLCHoklch(74.21% 0.155 110.1)
XYZxyz(34.7159, 41.8000, 7.4675)
Luminance0.4180 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B31E #1F1EB3
analogous
#B3691E #B2B31E #67B31E
triadic
#B2B31E #1EB2B3 #B31EB2
tetradic
#B2B31E #1EB369 #1F1EB3 #B31E67
square
#B2B31E #1EB369 #1F1EB3 #B31E67
split-complementary
#B2B31E #1E67B3 #691EB3
monochromatic
#4A4A0C #7E7F15 #B2B31E #DBDD32 #E5E566

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2B31E#FFFFFF#000000##000000
##B2B31E1.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: #b2b31e;
/* rgb */ color: rgb(178, 179, 30);
/* oklch */ color: oklch(74.2% 0.155 110.1);
Tailwind
colors: {
  custom: {
    50: '#cdc96a',
    500: '#b2b31e',
    950: '#000000',
  },
}
SCSS
$custom: #b2b31e;
$custom-light: #cdc96a;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b31e",
  "rgb": {
    "r": 178,
    "g": 179,
    "b": 30
  },
  "hsl": {
    "h": 60.403,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.74207,
    "c": 0.15501,
    "h": 110.1
  },
  "luminance": 0.41799
}

Semantic roles & 50–950 ramp

primary
#B2B31E
secondary
#6362CB
accent
#3AEE3B
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #B2B31E

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

Preview Lab → · Contrast checker → · Palette generator →

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