#6C2EB8#6C2EB8

#6C2EB8 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.6% C 0.202 H 298.6°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#6C2EB8
RGBrgb(108, 46, 184)
HSLhsl(267, 60%, 45%)
HSVhsv(267, 75%, 72%)
CMYKcmyk(41.3%, 75%, 0%, 27.8%)
CIE-LABlab(35.21, 54.26, -61.96)
CIE-LCHlch(35.21, 82.36, 311.21°)
OKLaboklab(46.59% 0.0965 -0.1772)
OKLCHoklch(46.59% 0.202 298.6)
XYZxyz(15.8109, 8.6026, 46.1656)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2EB8 #7AB82E
analogous
#2E35B8 #6C2EB8 #B12EB8
triadic
#6C2EB8 #B86C2E #2EB86C
tetradic
#6C2EB8 #B82E35 #7AB82E #2EB8B1
square
#6C2EB8 #B82E35 #7AB82E #2EB8B1
split-complementary
#6C2EB8 #B8B12E #35B82E
monochromatic
#331656 #4F2287 #6C2EB8 #8B50D3 #AB81DF

Accessibility & contrast

On white

7.72
#6C2EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#6C2EB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2EB8
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2EB8#FFFFFF#000000##FFFFFF
##6C2EB81.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BC
Deuteranopia (green-blind)
#0051B5
Tritanopia (blue-blind)
#595271
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6c2eb8;
/* rgb */ color: rgb(108, 46, 184);
/* oklch */ color: oklch(46.6% 0.202 298.6);
Tailwind
colors: {
  custom: {
    50: '#9d6dce',
    500: '#6c2eb8',
    950: '#000000',
  },
}
SCSS
$custom: #6c2eb8;
$custom-light: #9d6dce;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2eb8",
  "rgb": {
    "r": 108,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 266.957,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46588,
    "c": 0.20174,
    "h": 298.6
  },
  "luminance": 0.08603
}

Semantic roles & 50–950 ramp

primary
#6C2EB8
secondary
#A5C879
accent
#E3459C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6C2EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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