#B2B328#B2B328

#B2B328 is a light, vivid yellow. Relative luminance 0.419; OKLCH L 74.3% C 0.151 H 110.0°. Best body text is #000000 at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#B2B328
RGBrgb(178, 179, 40)
HSLhsl(60, 63%, 43%)
HSVhsv(60, 78%, 70%)
CMYKcmyk(0.6%, 0%, 77.7%, 29.8%)
CIE-LABlab(70.77, -16.11, 64.98)
CIE-LCHlch(70.77, 66.94, 103.92°)
OKLaboklab(74.25% -0.0515 0.1416)
OKLCHoklch(74.25% 0.151 110)
XYZxyz(34.8645, 41.8594, 8.2502)
Luminance0.4186 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B328 #2928B3
analogous
#B36F28 #B2B328 #6CB328
triadic
#B2B328 #28B2B3 #B328B2
tetradic
#B2B328 #28B36F #2928B3 #B3286C
square
#B2B328 #28B36F #2928B3 #B3286C
split-complementary
#B2B328 #286CB3 #6F28B3
monochromatic
#4F4F12 #80811D #B2B328 #D4D543 #DFE075

Accessibility & contrast

On white

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

On black

9.37
#B2B328 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B328
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B328#FFFFFF#000000##000000
##B2B3281.002.249.379.37
#FFFFFF2.241.0021.0021.00
#0000009.3721.001.001.00
##0000009.3721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b2b328;
/* rgb */ color: rgb(178, 179, 40);
/* oklch */ color: oklch(74.3% 0.151 110.0);
Tailwind
colors: {
  custom: {
    50: '#cdc96e',
    500: '#b2b328',
    950: '#000000',
  },
}
SCSS
$custom: #b2b328;
$custom-light: #cdc96e;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b328",
  "rgb": {
    "r": 178,
    "g": 179,
    "b": 40
  },
  "hsl": {
    "h": 60.432,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.74253,
    "c": 0.15068,
    "h": 110
  },
  "luminance": 0.41858
}

Semantic roles & 50–950 ramp

primary
#B2B328
secondary
#706FC8
accent
#41E642
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2B328

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

Preview Lab → · Contrast checker → · Palette generator →

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