#6C2EB2#6C2EB2

#6C2EB2 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.1% C 0.195 H 300.1°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#6C2EB2
RGBrgb(108, 46, 178)
HSLhsl(268, 59%, 44%)
HSVhsv(268, 74%, 70%)
CMYKcmyk(39.3%, 74.2%, 0%, 30.2%)
CIE-LABlab(34.71, 52.77, -59.21)
CIE-LCHlch(34.71, 79.31, 311.71°)
OKLaboklab(46.09% 0.0979 -0.1691)
OKLCHoklch(46.09% 0.195 300.1)
XYZxyz(15.1952, 8.3563, 42.9232)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2EB2 #74B22E
analogous
#2E32B2 #6C2EB2 #AE2EB2
triadic
#6C2EB2 #B26C2E #2EB26C
tetradic
#6C2EB2 #B22E32 #74B22E #2EB2AE
square
#6C2EB2 #B22E32 #74B22E #2EB2AE
split-complementary
#6C2EB2 #B2AE2E #32B22E
monochromatic
#311551 #4E2181 #6C2EB2 #8B4CD1 #AA7DDD

Accessibility & contrast

On white

7.86
#6C2EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#6C2EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2EB2
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2EB2#FFFFFF#000000##FFFFFF
##6C2EB21.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0051AF
Tritanopia (blue-blind)
#5C506E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6c2eb2;
/* rgb */ color: rgb(108, 46, 178);
/* oklch */ color: oklch(46.1% 0.195 300.1);
Tailwind
colors: {
  custom: {
    50: '#9c6dca',
    500: '#6c2eb2',
    950: '#000000',
  },
}
SCSS
$custom: #6c2eb2;
$custom-light: #9c6dca;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2eb2",
  "rgb": {
    "r": 108,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 268.182,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.46088,
    "c": 0.19538,
    "h": 300.1
  },
  "luminance": 0.08356
}

Semantic roles & 50–950 ramp

primary
#6C2EB2
secondary
#A0C676
accent
#E24699
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C2EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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