#B335AF#B335AF

#B335AF is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.2% C 0.210 H 329.3°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#B335AF
RGBrgb(179, 53, 175)
HSLhsl(302, 54%, 45%)
HSVhsv(302, 70%, 70%)
CMYKcmyk(0%, 70.4%, 2.2%, 29.8%)
CIE-LABlab(45.94, 64.11, -38.83)
CIE-LCHlch(45.94, 74.95, 328.80°)
OKLaboklab(56.16% 0.1806 -0.1072)
OKLCHoklch(56.16% 0.21 329.3)
XYZxyz(27.6012, 15.2271, 42.0345)
Luminance0.1522 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B335AF #35B339
analogous
#7835B3 #B335AF #B33570
triadic
#B335AF #AFB335 #35AFB3
tetradic
#B335AF #B37835 #35B339 #3570B3
square
#B335AF #B37835 #35B339 #3570B3
split-complementary
#B335AF #70B335 #35B378
monochromatic
#551953 #842781 #B335AF #CD58CA #DB87D9

Accessibility & contrast

On white

5.19
#B335AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#B335AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B335AF
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B335AF#FFFFFF#000000##FFFFFF
##B335AF1.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2562B2
Deuteranopia (green-blind)
#5873AC
Tritanopia (blue-blind)
#B9466E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b335af;
/* rgb */ color: rgb(179, 53, 175);
/* oklch */ color: oklch(56.2% 0.210 329.3);
Tailwind
colors: {
  custom: {
    50: '#cd78c7',
    500: '#b335af',
    950: '#000000',
  },
}
SCSS
$custom: #b335af;
$custom-light: #cd78c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b335af",
  "rgb": {
    "r": 179,
    "g": 53,
    "b": 175
  },
  "hsl": {
    "h": 301.905,
    "s": 54.31,
    "l": 45.49
  },
  "oklch": {
    "l": 0.56157,
    "c": 0.21001,
    "h": 329.3
  },
  "luminance": 0.15225
}

Semantic roles & 50–950 ramp

primary
#B335AF
secondary
#7FC581
accent
#DE4F4A
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B335AF

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

Preview Lab → · Contrast checker → · Palette generator →

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