#B2B334#B2B334

#B2B334 is a light, vivid yellow. Relative luminance 0.420; OKLCH L 74.3% C 0.144 H 109.9°. Best body text is #000000 at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#B2B334
RGBrgb(178, 179, 52)
HSLhsl(60, 55%, 45%)
HSVhsv(60, 71%, 70%)
CMYKcmyk(0.6%, 0%, 70.9%, 29.8%)
CIE-LABlab(70.84, -15.58, 61.03)
CIE-LCHlch(70.84, 62.98, 104.32°)
OKLaboklab(74.33% -0.049 0.1354)
OKLCHoklch(74.33% 0.144 109.9)
XYZxyz(35.1012, 41.9541, 9.4971)
Luminance0.4195 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B334 #3534B3
analogous
#B37434 #B2B334 #73B334
triadic
#B2B334 #34B2B3 #B334B2
tetradic
#B2B334 #34B374 #3534B3 #B33473
square
#B2B334 #34B374 #3534B3 #B33473
split-complementary
#B2B334 #3473B3 #7434B3
monochromatic
#545418 #838426 #B2B334 #CDCE56 #DBDC86

Accessibility & contrast

On white

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

On black

9.39
#B2B334 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B334
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B334#FFFFFF#000000##000000
##B2B3341.002.249.399.39
#FFFFFF2.241.0021.0021.00
#0000009.3921.001.001.00
##0000009.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB1E
Deuteranopia (green-blind)
#C3AF3D
Tritanopia (blue-blind)
#BFA89A
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b2b334;
/* rgb */ color: rgb(178, 179, 52);
/* oklch */ color: oklch(74.3% 0.144 109.9);
Tailwind
colors: {
  custom: {
    50: '#ccc974',
    500: '#b2b334',
    950: '#000000',
  },
}
SCSS
$custom: #b2b334;
$custom-light: #ccc974;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b334",
  "rgb": {
    "r": 178,
    "g": 179,
    "b": 52
  },
  "hsl": {
    "h": 60.472,
    "s": 54.978,
    "l": 45.294
  },
  "oklch": {
    "l": 0.74326,
    "c": 0.14397,
    "h": 109.9
  },
  "luminance": 0.41953
}

Semantic roles & 50–950 ramp

primary
#B2B334
secondary
#7E7DC5
accent
#49DE4B
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B2B334

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

Preview Lab → · Contrast checker → · Palette generator →

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