#B337E2#B337E2

#B337E2 is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.5% C 0.250 H 314.6°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#B337E2
RGBrgb(179, 55, 226)
HSLhsl(284, 75%, 55%)
HSVhsv(284, 76%, 89%)
CMYKcmyk(20.8%, 75.7%, 0%, 11.4%)
CIE-LABlab(49.26, 72.52, -63.00)
CIE-LCHlch(49.26, 96.06, 319.02°)
OKLaboklab(59.51% 0.1752 -0.1779)
OKLCHoklch(59.51% 0.25 314.6)
XYZxyz(33.6818, 17.8083, 73.5999)
Luminance0.1781 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B337E2 #66E237
analogous
#5E37E2 #B337E2 #E237BB
triadic
#B337E2 #E2B337 #37E2B3
tetradic
#B337E2 #E25E37 #66E237 #37BBE2
square
#B337E2 #E25E37 #66E237 #37BBE2
split-complementary
#B337E2 #BBE237 #37E25E
monochromatic
#6A148B #931CC0 #B337E2 #C76CEA #DCA2F2

Accessibility & contrast

On white

4.60
#B337E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#B337E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B337E2
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B337E2#FFFFFF#000000##FFFFFF
##B337E21.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE7
Deuteranopia (green-blind)
#2C78DE
Tritanopia (blue-blind)
#AF5E8B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b337e2;
/* rgb */ color: rgb(179, 55, 226);
/* oklch */ color: oklch(59.5% 0.250 314.6);
Tailwind
colors: {
  custom: {
    50: '#cf7bec',
    500: '#b337e2',
    950: '#000000',
  },
}
SCSS
$custom: #b337e2;
$custom-light: #cf7bec;
$custom-dark: #000000;
JSON
{
  "hex": "#b337e2",
  "rgb": {
    "r": 179,
    "g": 55,
    "b": 226
  },
  "hsl": {
    "h": 283.509,
    "s": 74.672,
    "l": 55.098
  },
  "oklch": {
    "l": 0.59505,
    "c": 0.24969,
    "h": 314.6
  },
  "luminance": 0.17807
}

Semantic roles & 50–950 ramp

primary
#B337E2
secondary
#AADE97
accent
#F1376A
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140A16
muted
#837C84

Preview Lab

Preview with #B337E2

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

Preview Lab → · Contrast checker → · Palette generator →

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