#B335A1#B335A1

#B335A1 is a mid, vivid purple. Relative luminance 0.147; OKLCH L 55.4% C 0.199 H 334.3°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#B335A1
RGBrgb(179, 53, 161)
HSLhsl(309, 54%, 45%)
HSVhsv(309, 70%, 70%)
CMYKcmyk(0%, 70.4%, 10.1%, 29.8%)
CIE-LABlab(45.23, 61.89, -31.65)
CIE-LCHlch(45.23, 69.52, 332.91°)
OKLaboklab(55.41% 0.1797 -0.0865)
OKLCHoklch(55.41% 0.199 334.3)
XYZxyz(26.2968, 14.7053, 35.1647)
Luminance0.1470 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B335A1 #35B347
analogous
#8635B3 #B335A1 #B33562
triadic
#B335A1 #A1B335 #35A1B3
tetradic
#B335A1 #B38635 #35B347 #3562B3
square
#B335A1 #B38635 #35B347 #3562B3
split-complementary
#B335A1 #62B335 #35B386
monochromatic
#55194C #842777 #B335A1 #CD58BD #DB87CF

Accessibility & contrast

On white

5.33
#B335A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#B335A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B335A1
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B335A1#FFFFFF#000000##FFFFFF
##B335A11.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335FA4
Deuteranopia (green-blind)
#5F729E
Tritanopia (blue-blind)
#BB3F67
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b335a1;
/* rgb */ color: rgb(179, 53, 161);
/* oklch */ color: oklch(55.4% 0.199 334.3);
Tailwind
colors: {
  custom: {
    50: '#cd78bd',
    500: '#b335a1',
    950: '#000000',
  },
}
SCSS
$custom: #b335a1;
$custom-light: #cd78bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b335a1",
  "rgb": {
    "r": 179,
    "g": 53,
    "b": 161
  },
  "hsl": {
    "h": 308.571,
    "s": 54.31,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55409,
    "c": 0.19947,
    "h": 334.3
  },
  "luminance": 0.14703
}

Semantic roles & 50–950 ramp

primary
#B335A1
secondary
#7FC589
accent
#DE5F4A
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B335A1

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

Preview Lab → · Contrast checker → · Palette generator →

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