#6C2EB5#6C2EB5

#6C2EB5 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.3% C 0.199 H 299.3°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#6C2EB5
RGBrgb(108, 46, 181)
HSLhsl(268, 59%, 45%)
HSVhsv(268, 75%, 71%)
CMYKcmyk(40.3%, 74.6%, 0%, 29%)
CIE-LABlab(34.96, 53.52, -60.59)
CIE-LCHlch(34.96, 80.84, 311.45°)
OKLaboklab(46.34% 0.0972 -0.1731)
OKLCHoklch(46.34% 0.199 299.3)
XYZxyz(15.4997, 8.4781, 44.5269)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2EB5 #77B52E
analogous
#2E33B5 #6C2EB5 #B02EB5
triadic
#6C2EB5 #B56C2E #2EB56C
tetradic
#6C2EB5 #B52E33 #77B52E #2EB5B0
square
#6C2EB5 #B52E33 #77B52E #2EB5B0
split-complementary
#6C2EB5 #B5B02E #33B52E
monochromatic
#321553 #4F2284 #6C2EB5 #8B4ED2 #AB7FDE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6C2EB5#FFFFFF#000000##FFFFFF
##6C2EB51.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)
#0052B9
Deuteranopia (green-blind)
#0051B2
Tritanopia (blue-blind)
#5B516F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6c2eb5;
/* rgb */ color: rgb(108, 46, 181);
/* oklch */ color: oklch(46.3% 0.199 299.3);
Tailwind
colors: {
  custom: {
    50: '#9d6dcc',
    500: '#6c2eb5',
    950: '#000000',
  },
}
SCSS
$custom: #6c2eb5;
$custom-light: #9d6dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2eb5",
  "rgb": {
    "r": 108,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 267.556,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46337,
    "c": 0.19857,
    "h": 299.3
  },
  "luminance": 0.08478
}

Semantic roles & 50–950 ramp

primary
#6C2EB5
secondary
#A3C778
accent
#E3459A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C2EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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