#6C2DB9#6C2DB9

#6C2DB9 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.6% C 0.204 H 298.5°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#6C2DB9
RGBrgb(108, 45, 185)
HSLhsl(267, 61%, 45%)
HSVhsv(267, 76%, 73%)
CMYKcmyk(41.6%, 75.7%, 0%, 27.5%)
CIE-LABlab(35.14, 54.95, -62.67)
CIE-LCHlch(35.14, 83.35, 311.25°)
OKLaboklab(46.57% 0.0971 -0.1792)
OKLCHoklch(46.57% 0.204 298.5)
XYZxyz(15.8774, 8.5675, 46.7067)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2DB9 #7AB92D
analogous
#2D34B9 #6C2DB9 #B22DB9
triadic
#6C2DB9 #B96C2D #2DB96C
tetradic
#6C2DB9 #B92D34 #7AB92D #2DB9B2
square
#6C2DB9 #B92D34 #7AB92D #2DB9B2
split-complementary
#6C2DB9 #B9B22D #34B92D
monochromatic
#331557 #4F2188 #6C2DB9 #8B4FD4 #AB80E0

Accessibility & contrast

On white

7.74
#6C2DB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#6C2DB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2DB9
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2DB9#FFFFFF#000000##FFFFFF
##6C2DB91.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BD
Deuteranopia (green-blind)
#0051B6
Tritanopia (blue-blind)
#595271
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6c2db9;
/* rgb */ color: rgb(108, 45, 185);
/* oklch */ color: oklch(46.6% 0.204 298.5);
Tailwind
colors: {
  custom: {
    50: '#9d6dcf',
    500: '#6c2db9',
    950: '#000000',
  },
}
SCSS
$custom: #6c2db9;
$custom-light: #9d6dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2db9",
  "rgb": {
    "r": 108,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 267,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46565,
    "c": 0.20386,
    "h": 298.5
  },
  "luminance": 0.08568
}

Semantic roles & 50–950 ramp

primary
#6C2DB9
secondary
#A5C979
accent
#E4449C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6C2DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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