#B2B628#B2B628

#B2B628 is a light, vivid yellow. Relative luminance 0.431; OKLCH L 74.9% C 0.154 H 111.3°. Best body text is #000000 at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#B2B628
RGBrgb(178, 182, 40)
HSLhsl(62, 64%, 44%)
HSVhsv(62, 78%, 71%)
CMYKcmyk(2.2%, 0%, 78%, 28.6%)
CIE-LABlab(71.61, -17.62, 65.73)
CIE-LCHlch(71.61, 68.05, 105.01°)
OKLaboklab(74.92% -0.0557 0.1432)
OKLCHoklch(74.92% 0.154 111.3)
XYZxyz(35.4723, 43.0750, 8.4528)
Luminance0.4307 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B628 #2C28B6
analogous
#B67328 #B2B628 #6BB628
triadic
#B2B628 #28B2B6 #B628B2
tetradic
#B2B628 #28B673 #2C28B6 #B6286B
square
#B2B628 #28B673 #2C28B6 #B6286B
split-complementary
#B2B628 #286BB6 #7328B6
monochromatic
#505212 #81841D #B2B628 #D2D645 #DEE177

Accessibility & contrast

On white

2.18
#B2B628 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.61
#B2B628 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B628
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B628#FFFFFF#000000##000000
##B2B6281.002.189.619.61
#FFFFFF2.181.0021.0021.00
#0000009.6121.001.001.00
##0000009.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AE00
Deuteranopia (green-blind)
#C5B135
Tritanopia (blue-blind)
#BFAA9C
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b2b628;
/* rgb */ color: rgb(178, 182, 40);
/* oklch */ color: oklch(74.9% 0.154 111.3);
Tailwind
colors: {
  custom: {
    50: '#cdcb6f',
    500: '#b2b628',
    950: '#000000',
  },
}
SCSS
$custom: #b2b628;
$custom-light: #cdcb6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b628",
  "rgb": {
    "r": 178,
    "g": 182,
    "b": 40
  },
  "hsl": {
    "h": 61.69,
    "s": 63.964,
    "l": 43.529
  },
  "oklch": {
    "l": 0.74918,
    "c": 0.15366,
    "h": 111.3
  },
  "luminance": 0.43074
}

Semantic roles & 50–950 ramp

primary
#B2B628
secondary
#7371C9
accent
#41E746
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2B628

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

Preview Lab → · Contrast checker → · Palette generator →

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