#6C2DB7#6C2DB7

#6C2DB7 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.4% C 0.202 H 298.9°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#6C2DB7
RGBrgb(108, 45, 183)
HSLhsl(267, 61%, 45%)
HSVhsv(267, 75%, 72%)
CMYKcmyk(41%, 75.4%, 0%, 28.2%)
CIE-LABlab(34.97, 54.45, -61.76)
CIE-LCHlch(34.97, 82.34, 311.40°)
OKLaboklab(46.4% 0.0976 -0.1766)
OKLCHoklch(46.4% 0.202 298.9)
XYZxyz(15.6678, 8.4836, 45.6026)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2DB7 #78B72D
analogous
#2D33B7 #6C2DB7 #B12DB7
triadic
#6C2DB7 #B76C2D #2DB76C
tetradic
#6C2DB7 #B72D33 #78B72D #2DB7B1
square
#6C2DB7 #B72D33 #78B72D #2DB7B1
split-complementary
#6C2DB7 #B7B12D #33B72D
monochromatic
#321555 #4F2186 #6C2DB7 #8B4ED3 #AB7FDF

Accessibility & contrast

On white

7.79
#6C2DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#6C2DB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2DB7
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2DB7#FFFFFF#000000##FFFFFF
##6C2DB71.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6c2db7;
/* rgb */ color: rgb(108, 45, 183);
/* oklch */ color: oklch(46.4% 0.202 298.9);
Tailwind
colors: {
  custom: {
    50: '#9d6dce',
    500: '#6c2db7',
    950: '#000000',
  },
}
SCSS
$custom: #6c2db7;
$custom-light: #9d6dce;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2db7",
  "rgb": {
    "r": 108,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 267.391,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46396,
    "c": 0.20175,
    "h": 298.9
  },
  "luminance": 0.08484
}

Semantic roles & 50–950 ramp

primary
#6C2DB7
secondary
#A3C878
accent
#E4449B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6C2DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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