#B335EA#B335EA

#B335EA is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.9% C 0.258 H 312.8°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#B335EA
RGBrgb(179, 53, 234)
HSLhsl(282, 81%, 56%)
HSVhsv(282, 77%, 92%)
CMYKcmyk(23.5%, 77.4%, 0%, 8.2%)
CIE-LABlab(49.58, 74.71, -67.01)
CIE-LCHlch(49.58, 100.36, 318.11°)
OKLaboklab(59.9% 0.1755 -0.1896)
OKLCHoklch(59.9% 0.258 312.8)
XYZxyz(34.7121, 18.0715, 79.4856)
Luminance0.1807 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B335EA #6CEA35
analogous
#5935EA #B335EA #EA35C7
triadic
#B335EA #EAB335 #35EAB3
tetradic
#B335EA #EA5935 #6CEA35 #35C7EA
square
#B335EA #EA5935 #6CEA35 #35C7EA
split-complementary
#B335EA #C7EA35 #35EA59
monochromatic
#6D1095 #9515CD #B335EA #C86CF0 #DDA4F6

Accessibility & contrast

On white

4.55
#B335EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#B335EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B335EA
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B335EA#FFFFFF#000000##000000
##B335EA1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070EF
Deuteranopia (green-blind)
#1778E6
Tritanopia (blue-blind)
#AD6190
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b335ea;
/* rgb */ color: rgb(179, 53, 234);
/* oklch */ color: oklch(59.9% 0.258 312.8);
Tailwind
colors: {
  custom: {
    50: '#cf7af2',
    500: '#b335ea',
    950: '#000000',
  },
}
SCSS
$custom: #b335ea;
$custom-light: #cf7af2;
$custom-dark: #000000;
JSON
{
  "hex": "#b335ea",
  "rgb": {
    "r": 179,
    "g": 53,
    "b": 234
  },
  "hsl": {
    "h": 281.768,
    "s": 81.166,
    "l": 56.275
  },
  "oklch": {
    "l": 0.59903,
    "c": 0.25835,
    "h": 312.8
  },
  "luminance": 0.1807
}

Semantic roles & 50–950 ramp

primary
#B335EA
secondary
#AFE398
accent
#F8306D
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#150A17
muted
#837C85

Preview Lab

Preview with #B335EA

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

Preview Lab → · Contrast checker → · Palette generator →

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