#6C2EA6#6C2EA6

#6C2EA6 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.1% C 0.183 H 303.3°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#6C2EA6
RGBrgb(108, 46, 166)
HSLhsl(271, 57%, 42%)
HSVhsv(271, 72%, 65%)
CMYKcmyk(34.9%, 72.3%, 0%, 34.9%)
CIE-LABlab(33.76, 49.83, -53.58)
CIE-LCHlch(33.76, 73.17, 312.92°)
OKLaboklab(45.12% 0.1003 -0.1525)
OKLCHoklch(45.12% 0.183 303.3)
XYZxyz(14.0427, 7.8953, 36.8531)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2EA6 #68A62E
analogous
#302EA6 #6C2EA6 #A62EA4
triadic
#6C2EA6 #A66C2E #2EA66C
tetradic
#6C2EA6 #A6302E #68A62E #2EA4A6
square
#6C2EA6 #A6302E #68A62E #2EA4A6
split-complementary
#6C2EA6 #A4A62E #2EA630
monochromatic
#2E1346 #4D2176 #6C2EA6 #8B46CC #A976D9

Accessibility & contrast

On white

8.14
#6C2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#6C2EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2EA6
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2EA6#FFFFFF#000000##FFFFFF
##6C2EA61.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA9
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#604B67
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6c2ea6;
/* rgb */ color: rgb(108, 46, 166);
/* oklch */ color: oklch(45.1% 0.183 303.3);
Tailwind
colors: {
  custom: {
    50: '#9b6cc1',
    500: '#6c2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #6c2ea6;
$custom-light: #9b6cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2ea6",
  "rgb": {
    "r": 108,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 271,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.45118,
    "c": 0.18257,
    "h": 303.3
  },
  "luminance": 0.07895
}

Semantic roles & 50–950 ramp

primary
#6C2EA6
secondary
#97C16F
accent
#E04891
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6C2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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