#B335AB#B335AB

#B335AB is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 55.9% C 0.207 H 330.7°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#B335AB
RGBrgb(179, 53, 171)
HSLhsl(304, 54%, 45%)
HSVhsv(304, 70%, 70%)
CMYKcmyk(0%, 70.4%, 4.5%, 29.8%)
CIE-LABlab(45.73, 63.46, -36.80)
CIE-LCHlch(45.73, 73.36, 329.89°)
OKLaboklab(55.94% 0.1804 -0.1014)
OKLCHoklch(55.94% 0.207 330.7)
XYZxyz(27.2141, 15.0723, 39.9961)
Luminance0.1507 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B335AB #35B33D
analogous
#7C35B3 #B335AB #B3356C
triadic
#B335AB #ABB335 #35ABB3
tetradic
#B335AB #B37C35 #35B33D #356CB3
square
#B335AB #B37C35 #35B33D #356CB3
split-complementary
#B335AB #6CB335 #35B37C
monochromatic
#551951 #84277E #B335AB #CD58C6 #DB87D6

Accessibility & contrast

On white

5.23
#B335AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#B335AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B335AB
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B335AB#FFFFFF#000000##FFFFFF
##B335AB1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A61AE
Deuteranopia (green-blind)
#5A72A8
Tritanopia (blue-blind)
#BA446C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b335ab;
/* rgb */ color: rgb(179, 53, 171);
/* oklch */ color: oklch(55.9% 0.207 330.7);
Tailwind
colors: {
  custom: {
    50: '#cd78c4',
    500: '#b335ab',
    950: '#000000',
  },
}
SCSS
$custom: #b335ab;
$custom-light: #cd78c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b335ab",
  "rgb": {
    "r": 179,
    "g": 53,
    "b": 171
  },
  "hsl": {
    "h": 303.81,
    "s": 54.31,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55938,
    "c": 0.20693,
    "h": 330.7
  },
  "luminance": 0.1507
}

Semantic roles & 50–950 ramp

primary
#B335AB
secondary
#7FC583
accent
#DE534A
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B335AB

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

Preview Lab → · Contrast checker → · Palette generator →

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