#6C2DB6#6C2DB6

#6C2DB6 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.3% C 0.201 H 299.2°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#6C2DB6
RGBrgb(108, 45, 182)
HSLhsl(268, 60%, 45%)
HSVhsv(268, 75%, 71%)
CMYKcmyk(40.7%, 75.3%, 0%, 28.6%)
CIE-LABlab(34.89, 54.21, -61.30)
CIE-LCHlch(34.89, 81.83, 311.48°)
OKLaboklab(46.31% 0.0979 -0.1752)
OKLCHoklch(46.31% 0.201 299.2)
XYZxyz(15.5641, 8.4421, 45.0564)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2DB6 #77B62D
analogous
#2D33B6 #6C2DB6 #B02DB6
triadic
#6C2DB6 #B66C2D #2DB66C
tetradic
#6C2DB6 #B62D33 #77B62D #2DB6B0
square
#6C2DB6 #B62D33 #77B62D #2DB6B0
split-complementary
#6C2DB6 #B6B02D #33B62D
monochromatic
#321554 #4F2185 #6C2DB6 #8B4DD3 #AB7EDF

Accessibility & contrast

On white

7.81
#6C2DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#6C2DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2DB6
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2DB6#FFFFFF#000000##FFFFFF
##6C2DB61.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BA
Deuteranopia (green-blind)
#0051B3
Tritanopia (blue-blind)
#5A5170
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6c2db6;
/* rgb */ color: rgb(108, 45, 182);
/* oklch */ color: oklch(46.3% 0.201 299.2);
Tailwind
colors: {
  custom: {
    50: '#9d6ccd',
    500: '#6c2db6',
    950: '#000000',
  },
}
SCSS
$custom: #6c2db6;
$custom-light: #9d6ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2db6",
  "rgb": {
    "r": 108,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 267.591,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46311,
    "c": 0.2007,
    "h": 299.2
  },
  "luminance": 0.08442
}

Semantic roles & 50–950 ramp

primary
#6C2DB6
secondary
#A3C877
accent
#E3449A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6C2DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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