#6C2DB2#6C2DB2

#6C2DB2 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 46.0% C 0.196 H 300.2°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#6C2DB2
RGBrgb(108, 45, 178)
HSLhsl(268, 60%, 44%)
HSVhsv(268, 75%, 70%)
CMYKcmyk(39.3%, 74.7%, 0%, 30.2%)
CIE-LABlab(34.56, 53.22, -59.46)
CIE-LCHlch(34.56, 79.80, 311.83°)
OKLaboklab(45.98% 0.0988 -0.1698)
OKLCHoklch(45.98% 0.196 300.2)
XYZxyz(15.1566, 8.2791, 42.9104)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2DB2 #73B22D
analogous
#2D30B2 #6C2DB2 #AE2DB2
triadic
#6C2DB2 #B26C2D #2DB26C
tetradic
#6C2DB2 #B22D30 #73B22D #2DB2AE
square
#6C2DB2 #B22D30 #73B22D #2DB2AE
split-complementary
#6C2DB2 #B2AE2D #30B22D
monochromatic
#311450 #4E2181 #6C2DB2 #8B4BD1 #AA7CDE

Accessibility & contrast

On white

7.91
#6C2DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#6C2DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2DB2
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2DB2#FFFFFF#000000##FFFFFF
##6C2DB21.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0050AF
Tritanopia (blue-blind)
#5C4F6D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6c2db2;
/* rgb */ color: rgb(108, 45, 178);
/* oklch */ color: oklch(46.0% 0.196 300.2);
Tailwind
colors: {
  custom: {
    50: '#9c6cca',
    500: '#6c2db2',
    950: '#000000',
  },
}
SCSS
$custom: #6c2db2;
$custom-light: #9c6cca;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2db2",
  "rgb": {
    "r": 108,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 268.421,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45977,
    "c": 0.19647,
    "h": 300.2
  },
  "luminance": 0.08279
}

Semantic roles & 50–950 ramp

primary
#6C2DB2
secondary
#A0C675
accent
#E34598
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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