#B2B321#B2B321

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

Color values

HEX#B2B321
RGBrgb(178, 179, 33)
HSLhsl(60, 69%, 42%)
HSVhsv(60, 82%, 70%)
CMYKcmyk(0.6%, 0%, 81.6%, 29.8%)
CIE-LABlab(70.74, -16.35, 66.93)
CIE-LCHlch(70.74, 68.89, 103.73°)
OKLaboklab(74.22% -0.0527 0.1445)
OKLCHoklch(74.22% 0.154 110)
XYZxyz(34.7560, 41.8160, 7.6790)
Luminance0.4182 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B321 #2221B3
analogous
#B36B21 #B2B321 #69B321
triadic
#B2B321 #21B2B3 #B321B2
tetradic
#B2B321 #21B36B #2221B3 #B32169
square
#B2B321 #21B36B #2221B3 #B32169
split-complementary
#B2B321 #2169B3 #6B21B3
monochromatic
#4B4C0E #7F7F17 #B2B321 #D9DA37 #E3E46B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #b2b321;
/* rgb */ color: rgb(178, 179, 33);
/* oklch */ color: oklch(74.2% 0.154 110.0);
Tailwind
colors: {
  custom: {
    50: '#cdc96c',
    500: '#b2b321',
    950: '#000000',
  },
}
SCSS
$custom: #b2b321;
$custom-light: #cdc96c;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b321",
  "rgb": {
    "r": 178,
    "g": 179,
    "b": 33
  },
  "hsl": {
    "h": 60.411,
    "s": 68.868,
    "l": 41.569
  },
  "oklch": {
    "l": 0.7422,
    "c": 0.15382,
    "h": 110
  },
  "luminance": 0.41815
}

Semantic roles & 50–950 ramp

primary
#B2B321
secondary
#6766CA
accent
#3CEC3D
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141308
muted
#83827A

Preview Lab

Preview with #B2B321

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

Preview Lab → · Contrast checker → · Palette generator →

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