#B2B827#B2B827

#B2B827 is a light, vivid yellow. Relative luminance 0.439; OKLCH L 75.4% C 0.156 H 112.1°. Best body text is #000000 at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#B2B827
RGBrgb(178, 184, 39)
HSLhsl(62, 65%, 44%)
HSVhsv(62, 79%, 72%)
CMYKcmyk(3.3%, 0%, 78.8%, 27.8%)
CIE-LABlab(72.16, -18.67, 66.51)
CIE-LCHlch(72.16, 69.08, 105.68°)
OKLaboklab(75.36% -0.0587 0.1447)
OKLCHoklch(75.36% 0.156 112.1)
XYZxyz(35.8680, 43.8933, 8.5019)
Luminance0.4389 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B827 #2D27B8
analogous
#B87527 #B2B827 #69B827
triadic
#B2B827 #27B2B8 #B827B2
tetradic
#B2B827 #27B875 #2D27B8 #B82769
square
#B2B827 #27B875 #2D27B8 #B82769
split-complementary
#B2B827 #2769B8 #7527B8
monochromatic
#505312 #81861C #B2B827 #D1D845 #DEE277

Accessibility & contrast

On white

2.15
#B2B827 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.78
#B2B827 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B827
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B827#FFFFFF#000000##000000
##B2B8271.002.159.789.78
#FFFFFF2.151.0021.0021.00
#0000009.7821.001.001.00
##0000009.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7AF00
Deuteranopia (green-blind)
#C7B335
Tritanopia (blue-blind)
#BFAC9E
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #b2b827;
/* rgb */ color: rgb(178, 184, 39);
/* oklch */ color: oklch(75.4% 0.156 112.1);
Tailwind
colors: {
  custom: {
    50: '#cdcd6f',
    500: '#b2b827',
    950: '#000000',
  },
}
SCSS
$custom: #b2b827;
$custom-light: #cdcd6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b827",
  "rgb": {
    "r": 178,
    "g": 184,
    "b": 39
  },
  "hsl": {
    "h": 62.483,
    "s": 65.022,
    "l": 43.725
  },
  "oklch": {
    "l": 0.75358,
    "c": 0.15615,
    "h": 112.1
  },
  "luminance": 0.43892
}

Semantic roles & 50–950 ramp

primary
#B2B827
secondary
#7571CA
accent
#40E847
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2B827

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

Preview Lab → · Contrast checker → · Palette generator →

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