#B335A4#B335A4

#B335A4 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.6% C 0.202 H 333.2°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#B335A4
RGBrgb(179, 53, 164)
HSLhsl(307, 54%, 45%)
HSVhsv(307, 70%, 70%)
CMYKcmyk(0%, 70.4%, 8.4%, 29.8%)
CIE-LABlab(45.38, 62.35, -33.21)
CIE-LCHlch(45.38, 70.65, 331.96°)
OKLaboklab(55.57% 0.18 -0.091)
OKLCHoklch(55.57% 0.202 333.2)
XYZxyz(26.5645, 14.8124, 36.5748)
Luminance0.1481 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B335A4 #35B344
analogous
#8335B3 #B335A4 #B33565
triadic
#B335A4 #A4B335 #35A4B3
tetradic
#B335A4 #B38335 #35B344 #3565B3
square
#B335A4 #B38335 #35B344 #3565B3
split-complementary
#B335A4 #65B335 #35B383
monochromatic
#55194D #842779 #B335A4 #CD58BF #DB87D1

Accessibility & contrast

On white

5.30
#B335A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#B335A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B335A4
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B335A4#FFFFFF#000000##FFFFFF
##B335A41.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3060A7
Deuteranopia (green-blind)
#5E72A1
Tritanopia (blue-blind)
#BB4168
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b335a4;
/* rgb */ color: rgb(179, 53, 164);
/* oklch */ color: oklch(55.6% 0.202 333.2);
Tailwind
colors: {
  custom: {
    50: '#cd78bf',
    500: '#b335a4',
    950: '#000000',
  },
}
SCSS
$custom: #b335a4;
$custom-light: #cd78bf;
$custom-dark: #000000;
JSON
{
  "hex": "#b335a4",
  "rgb": {
    "r": 179,
    "g": 53,
    "b": 164
  },
  "hsl": {
    "h": 307.143,
    "s": 54.31,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55565,
    "c": 0.20168,
    "h": 333.2
  },
  "luminance": 0.1481
}

Semantic roles & 50–950 ramp

primary
#B335A4
secondary
#7FC587
accent
#DE5C4A
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B335A4

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

Preview Lab → · Contrast checker → · Palette generator →

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