#B335A9#B335A9

#B335A9 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 55.8% C 0.205 H 331.4°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#B335A9
RGBrgb(179, 53, 169)
HSLhsl(305, 54%, 45%)
HSVhsv(305, 70%, 70%)
CMYKcmyk(0%, 70.4%, 5.6%, 29.8%)
CIE-LABlab(45.63, 63.14, -35.78)
CIE-LCHlch(45.63, 72.57, 330.46°)
OKLaboklab(55.83% 0.1803 -0.0984)
OKLCHoklch(55.83% 0.205 331.4)
XYZxyz(27.0249, 14.9966, 38.9997)
Luminance0.1499 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B335A9 #35B33F
analogous
#7E35B3 #B335A9 #B3356A
triadic
#B335A9 #A9B335 #35A9B3
tetradic
#B335A9 #B37E35 #35B33F #356AB3
square
#B335A9 #B37E35 #35B33F #356AB3
split-complementary
#B335A9 #6AB335 #35B37E
monochromatic
#551950 #84277C #B335A9 #CD58C4 #DB87D5

Accessibility & contrast

On white

5.25
#B335A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#B335A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B335A9
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B335A9#FFFFFF#000000##FFFFFF
##B335A91.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C61AC
Deuteranopia (green-blind)
#5B72A6
Tritanopia (blue-blind)
#BA436B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b335a9;
/* rgb */ color: rgb(179, 53, 169);
/* oklch */ color: oklch(55.8% 0.205 331.4);
Tailwind
colors: {
  custom: {
    50: '#cd78c3',
    500: '#b335a9',
    950: '#000000',
  },
}
SCSS
$custom: #b335a9;
$custom-light: #cd78c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b335a9",
  "rgb": {
    "r": 179,
    "g": 53,
    "b": 169
  },
  "hsl": {
    "h": 304.762,
    "s": 54.31,
    "l": 45.49
  },
  "oklch": {
    "l": 0.5583,
    "c": 0.20541,
    "h": 331.4
  },
  "luminance": 0.14994
}

Semantic roles & 50–950 ramp

primary
#B335A9
secondary
#7FC584
accent
#DE564A
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A12
muted
#837C81

Preview Lab

Preview with #B335A9

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

Preview Lab → · Contrast checker → · Palette generator →

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