#6C2DBA#6C2DBA

#6C2DBA is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.7% C 0.205 H 298.2°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#6C2DBA
RGBrgb(108, 45, 186)
HSLhsl(267, 61%, 45%)
HSVhsv(267, 76%, 73%)
CMYKcmyk(41.9%, 75.8%, 0%, 27.1%)
CIE-LABlab(35.22, 55.20, -63.12)
CIE-LCHlch(35.22, 83.85, 311.17°)
OKLaboklab(46.65% 0.0969 -0.1806)
OKLCHoklch(46.65% 0.205 298.2)
XYZxyz(15.9834, 8.6098, 47.2646)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2DBA #7BBA2D
analogous
#2D34BA #6C2DBA #B32DBA
triadic
#6C2DBA #BA6C2D #2DBA6C
tetradic
#6C2DBA #BA2D34 #7BBA2D #2DBAB3
square
#6C2DBA #BA2D34 #7BBA2D #2DBAB3
split-complementary
#6C2DBA #BAB32D #34BA2D
monochromatic
#331557 #4F2189 #6C2DBA #8B50D5 #AC81E0

Accessibility & contrast

On white

7.71
#6C2DBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#6C2DBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2DBA
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2DBA#FFFFFF#000000##FFFFFF
##6C2DBA1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BE
Deuteranopia (green-blind)
#0051B7
Tritanopia (blue-blind)
#585272
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6c2dba;
/* rgb */ color: rgb(108, 45, 186);
/* oklch */ color: oklch(46.7% 0.205 298.2);
Tailwind
colors: {
  custom: {
    50: '#9d6dd0',
    500: '#6c2dba',
    950: '#000000',
  },
}
SCSS
$custom: #6c2dba;
$custom-light: #9d6dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2dba",
  "rgb": {
    "r": 108,
    "g": 45,
    "b": 186
  },
  "hsl": {
    "h": 266.809,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4665,
    "c": 0.20491,
    "h": 298.2
  },
  "luminance": 0.0861
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6C2DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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