#B2B428#B2B428

#B2B428 is a light, vivid yellow. Relative luminance 0.423; OKLCH L 74.5% C 0.152 H 110.4°. Best body text is #000000 at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#B2B428
RGBrgb(178, 180, 40)
HSLhsl(61, 64%, 43%)
HSVhsv(61, 78%, 71%)
CMYKcmyk(1.1%, 0%, 77.8%, 29.4%)
CIE-LABlab(71.05, -16.61, 65.23)
CIE-LCHlch(71.05, 67.31, 104.29°)
OKLaboklab(74.48% -0.0529 0.1421)
OKLCHoklch(74.48% 0.152 110.4)
XYZxyz(35.0656, 42.2617, 8.3173)
Luminance0.4226 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B428 #2A28B4
analogous
#B47028 #B2B428 #6CB428
triadic
#B2B428 #28B2B4 #B428B2
tetradic
#B2B428 #28B470 #2A28B4 #B4286C
square
#B2B428 #28B470 #2A28B4 #B4286C
split-complementary
#B2B428 #286CB4 #7028B4
monochromatic
#4F5012 #80821D #B2B428 #D3D544 #DFE176

Accessibility & contrast

On white

2.22
#B2B428 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.45
#B2B428 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B428
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B428#FFFFFF#000000##000000
##B2B4281.002.229.459.45
#FFFFFF2.221.0021.0021.00
#0000009.4521.001.001.00
##0000009.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AC00
Deuteranopia (green-blind)
#C4B034
Tritanopia (blue-blind)
#BFA89A
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b2b428;
/* rgb */ color: rgb(178, 180, 40);
/* oklch */ color: oklch(74.5% 0.152 110.4);
Tailwind
colors: {
  custom: {
    50: '#cdca6f',
    500: '#b2b428',
    950: '#000000',
  },
}
SCSS
$custom: #b2b428;
$custom-light: #cdca6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b428",
  "rgb": {
    "r": 178,
    "g": 180,
    "b": 40
  },
  "hsl": {
    "h": 60.857,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.74475,
    "c": 0.15166,
    "h": 110.4
  },
  "luminance": 0.42261
}

Semantic roles & 50–950 ramp

primary
#B2B428
secondary
#7170C8
accent
#41E744
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2B428

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

Preview Lab → · Contrast checker → · Palette generator →

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