#B335A2#B335A2

#B335A2 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.5% C 0.200 H 333.9°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#B335A2
RGBrgb(179, 53, 162)
HSLhsl(308, 54%, 45%)
HSVhsv(308, 70%, 70%)
CMYKcmyk(0%, 70.4%, 9.5%, 29.8%)
CIE-LABlab(45.28, 62.04, -32.17)
CIE-LCHlch(45.28, 69.89, 332.59°)
OKLaboklab(55.46% 0.1798 -0.088)
OKLCHoklch(55.46% 0.2 333.9)
XYZxyz(26.3853, 14.7408, 35.6310)
Luminance0.1474 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B335A2 #35B346
analogous
#8535B3 #B335A2 #B33563
triadic
#B335A2 #A2B335 #35A2B3
tetradic
#B335A2 #B38535 #35B346 #3563B3
square
#B335A2 #B38535 #35B346 #3563B3
split-complementary
#B335A2 #63B335 #35B385
monochromatic
#55194D #842777 #B335A2 #CD58BE #DB87D0

Accessibility & contrast

On white

5.32
#B335A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#B335A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B335A2
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B335A2#FFFFFF#000000##FFFFFF
##B335A21.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325FA5
Deuteranopia (green-blind)
#5F729F
Tritanopia (blue-blind)
#BB4067
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b335a2;
/* rgb */ color: rgb(179, 53, 162);
/* oklch */ color: oklch(55.5% 0.200 333.9);
Tailwind
colors: {
  custom: {
    50: '#cd78be',
    500: '#b335a2',
    950: '#000000',
  },
}
SCSS
$custom: #b335a2;
$custom-light: #cd78be;
$custom-dark: #000000;
JSON
{
  "hex": "#b335a2",
  "rgb": {
    "r": 179,
    "g": 53,
    "b": 162
  },
  "hsl": {
    "h": 308.095,
    "s": 54.31,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55461,
    "c": 0.2002,
    "h": 333.9
  },
  "luminance": 0.14739
}

Semantic roles & 50–950 ramp

primary
#B335A2
secondary
#7FC588
accent
#DE5E4A
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B335A2

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

Preview Lab → · Contrast checker → · Palette generator →

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