#6C2EB6#6C2EB6

#6C2EB6 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.4% C 0.200 H 299.1°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#6C2EB6
RGBrgb(108, 46, 182)
HSLhsl(267, 60%, 45%)
HSVhsv(267, 75%, 71%)
CMYKcmyk(40.7%, 74.7%, 0%, 28.6%)
CIE-LABlab(35.04, 53.77, -61.05)
CIE-LCHlch(35.04, 81.35, 311.37°)
OKLaboklab(46.42% 0.097 -0.1745)
OKLCHoklch(46.42% 0.2 299.1)
XYZxyz(15.6027, 8.5193, 45.0693)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2EB6 #78B62E
analogous
#2E34B6 #6C2EB6 #B02EB6
triadic
#6C2EB6 #B66C2E #2EB66C
tetradic
#6C2EB6 #B62E34 #78B62E #2EB6B0
square
#6C2EB6 #B62E34 #78B62E #2EB6B0
split-complementary
#6C2EB6 #B6B02E #34B62E
monochromatic
#321554 #4F2285 #6C2EB6 #8B4FD2 #AB80DF

Accessibility & contrast

On white

7.77
#6C2EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C2EB6
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2EB6#FFFFFF#000000##FFFFFF
##6C2EB61.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.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: #6c2eb6;
/* rgb */ color: rgb(108, 46, 182);
/* oklch */ color: oklch(46.4% 0.200 299.1);
Tailwind
colors: {
  custom: {
    50: '#9d6dcd',
    500: '#6c2eb6',
    950: '#000000',
  },
}
SCSS
$custom: #6c2eb6;
$custom-light: #9d6dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2eb6",
  "rgb": {
    "r": 108,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 267.353,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4642,
    "c": 0.19962,
    "h": 299.1
  },
  "luminance": 0.0852
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6C2EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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