#B2B342#B2B342

#B2B342 is a light, vivid yellow. Relative luminance 0.421; OKLCH L 74.4% C 0.134 H 109.7°. Best body text is #000000 at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#B2B342
RGBrgb(178, 179, 66)
HSLhsl(61, 46%, 48%)
HSVhsv(61, 63%, 70%)
CMYKcmyk(0.6%, 0%, 63.1%, 29.8%)
CIE-LABlab(70.94, -14.78, 55.60)
CIE-LCHlch(70.94, 57.53, 104.88°)
OKLaboklab(74.44% -0.0453 0.1262)
OKLCHoklch(74.44% 0.134 109.7)
XYZxyz(35.4647, 42.0995, 11.4110)
Luminance0.4210 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B342 #4342B3
analogous
#B37B42 #B2B342 #79B342
triadic
#B2B342 #42B2B3 #B342B2
tetradic
#B2B342 #42B37B #4342B3 #B34279
square
#B2B342 #42B37B #4342B3 #B34279
split-complementary
#B2B342 #4279B3 #7B42B3
monochromatic
#595A21 #868632 #B2B342 #C7C86A #D8D997

Accessibility & contrast

On white

2.23
#B2B342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.42
#B2B342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B342
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B342#FFFFFF#000000##000000
##B2B3421.002.239.429.42
#FFFFFF2.231.0021.0021.00
#0000009.4221.001.001.00
##0000009.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC34
Deuteranopia (green-blind)
#C2AF49
Tritanopia (blue-blind)
#BEA89C
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b2b342;
/* rgb */ color: rgb(178, 179, 66);
/* oklch */ color: oklch(74.4% 0.134 109.7);
Tailwind
colors: {
  custom: {
    50: '#ccc97c',
    500: '#b2b342',
    950: '#000000',
  },
}
SCSS
$custom: #b2b342;
$custom-light: #ccc97c;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b342",
  "rgb": {
    "r": 178,
    "g": 179,
    "b": 66
  },
  "hsl": {
    "h": 60.531,
    "s": 46.122,
    "l": 48.039
  },
  "oklch": {
    "l": 0.74438,
    "c": 0.13411,
    "h": 109.7
  },
  "luminance": 0.42099
}

Semantic roles & 50–950 ramp

primary
#B2B342
secondary
#8D8CC4
accent
#52D653
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #B2B342

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

Preview Lab → · Contrast checker → · Palette generator →

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