#B335A7#B335A7

#B335A7 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.7% C 0.204 H 332.1°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#B335A7
RGBrgb(179, 53, 167)
HSLhsl(306, 54%, 45%)
HSVhsv(306, 70%, 70%)
CMYKcmyk(0%, 70.4%, 6.7%, 29.8%)
CIE-LABlab(45.53, 62.82, -34.75)
CIE-LCHlch(45.53, 71.80, 331.05°)
OKLaboklab(55.72% 0.1802 -0.0955)
OKLCHoklch(55.72% 0.204 332.1)
XYZxyz(26.8386, 14.9221, 38.0184)
Luminance0.1492 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B335A7 #35B341
analogous
#8035B3 #B335A7 #B33568
triadic
#B335A7 #A7B335 #35A7B3
tetradic
#B335A7 #B38035 #35B341 #3568B3
square
#B335A7 #B38035 #35B341 #3568B3
split-complementary
#B335A7 #68B335 #35B380
monochromatic
#55194F #84277B #B335A7 #CD58C2 #DB87D3

Accessibility & contrast

On white

5.27
#B335A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#B335A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B335A7
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B335A7#FFFFFF#000000##FFFFFF
##B335A71.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E60AA
Deuteranopia (green-blind)
#5C72A4
Tritanopia (blue-blind)
#BB426A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b335a7;
/* rgb */ color: rgb(179, 53, 167);
/* oklch */ color: oklch(55.7% 0.204 332.1);
Tailwind
colors: {
  custom: {
    50: '#cd78c1',
    500: '#b335a7',
    950: '#000000',
  },
}
SCSS
$custom: #b335a7;
$custom-light: #cd78c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b335a7",
  "rgb": {
    "r": 179,
    "g": 53,
    "b": 167
  },
  "hsl": {
    "h": 305.714,
    "s": 54.31,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55723,
    "c": 0.20391,
    "h": 332.1
  },
  "luminance": 0.1492
}

Semantic roles & 50–950 ramp

primary
#B335A7
secondary
#7FC585
accent
#DE584A
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B335A7

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

Preview Lab → · Contrast checker → · Palette generator →

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