#6B33B2#6B33B2

#6B33B2 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.6% C 0.189 H 298.9°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#6B33B2
RGBrgb(107, 51, 178)
HSLhsl(266, 55%, 45%)
HSVhsv(266, 71%, 70%)
CMYKcmyk(39.9%, 71.3%, 0%, 30.2%)
CIE-LABlab(35.42, 50.26, -58.07)
CIE-LCHlch(35.42, 76.80, 310.88°)
OKLaboklab(46.56% 0.0917 -0.1658)
OKLCHoklch(46.56% 0.189 298.9)
XYZxyz(15.2811, 8.7076, 42.9865)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B33B2 #7AB233
analogous
#333AB2 #6B33B2 #AB33B2
triadic
#6B33B2 #B26B33 #33B26B
tetradic
#6B33B2 #B2333A #7AB233 #33B2AB
square
#6B33B2 #B2333A #7AB233 #33B2AB
split-complementary
#6B33B2 #B2AB33 #3AB233
monochromatic
#321853 #4E2582 #6B33B2 #8A54CE #AB84DC

Accessibility & contrast

On white

7.66
#6B33B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#6B33B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B33B2
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B33B2#FFFFFF#000000##FFFFFF
##6B33B21.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0052AF
Tritanopia (blue-blind)
#5A526F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6b33b2;
/* rgb */ color: rgb(107, 51, 178);
/* oklch */ color: oklch(46.6% 0.189 298.9);
Tailwind
colors: {
  custom: {
    50: '#9b6fca',
    500: '#6b33b2',
    950: '#000000',
  },
}
SCSS
$custom: #6b33b2;
$custom-light: #9b6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#6b33b2",
  "rgb": {
    "r": 107,
    "g": 51,
    "b": 178
  },
  "hsl": {
    "h": 266.457,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46556,
    "c": 0.18945,
    "h": 298.9
  },
  "luminance": 0.08708
}

Semantic roles & 50–950 ramp

primary
#6B33B2
secondary
#A5C57C
accent
#DF499D
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6B33B2

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

Preview Lab → · Contrast checker → · Palette generator →

#6B33B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva