#B335B1#B335B1

#B335B1 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.3% C 0.212 H 328.6°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#B335B1
RGBrgb(179, 53, 177)
HSLhsl(301, 54%, 45%)
HSVhsv(301, 70%, 70%)
CMYKcmyk(0%, 70.4%, 1.1%, 29.8%)
CIE-LABlab(46.05, 64.43, -39.84)
CIE-LCHlch(46.05, 75.75, 328.27°)
OKLaboklab(56.27% 0.1806 -0.1102)
OKLCHoklch(56.27% 0.212 328.6)
XYZxyz(27.7990, 15.3063, 43.0767)
Luminance0.1530 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B335B1 #35B337
analogous
#7635B3 #B335B1 #B33572
triadic
#B335B1 #B1B335 #35B1B3
tetradic
#B335B1 #B37635 #35B337 #3572B3
square
#B335B1 #B37635 #35B337 #3572B3
split-complementary
#B335B1 #72B335 #35B376
monochromatic
#551954 #842782 #B335B1 #CD58CC #DB87DA

Accessibility & contrast

On white

5.17
#B335B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#B335B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B335B1
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B335B1#FFFFFF#000000##FFFFFF
##B335B11.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2262B4
Deuteranopia (green-blind)
#5773AE
Tritanopia (blue-blind)
#B9476F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b335b1;
/* rgb */ color: rgb(179, 53, 177);
/* oklch */ color: oklch(56.3% 0.212 328.6);
Tailwind
colors: {
  custom: {
    50: '#cd78c9',
    500: '#b335b1',
    950: '#000000',
  },
}
SCSS
$custom: #b335b1;
$custom-light: #cd78c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b335b1",
  "rgb": {
    "r": 179,
    "g": 53,
    "b": 177
  },
  "hsl": {
    "h": 300.952,
    "s": 54.31,
    "l": 45.49
  },
  "oklch": {
    "l": 0.56269,
    "c": 0.21156,
    "h": 328.6
  },
  "luminance": 0.15304
}

Semantic roles & 50–950 ramp

primary
#B335B1
secondary
#7FC580
accent
#DE4C4A
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B335B1

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

Preview Lab → · Contrast checker → · Palette generator →

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