#6C2ECA#6C2ECA

#6C2ECA is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.221 H 294.6°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#6C2ECA
RGBrgb(108, 46, 202)
HSLhsl(264, 63%, 49%)
HSVhsv(264, 77%, 79%)
CMYKcmyk(46.5%, 77.2%, 0%, 20.8%)
CIE-LABlab(36.75, 58.78, -69.99)
CIE-LCHlch(36.75, 91.40, 310.02°)
OKLaboklab(48.15% 0.0918 -0.2007)
OKLCHoklch(48.15% 0.221 294.6)
XYZxyz(17.8191, 9.4059, 56.7423)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2ECA #8CCA2E
analogous
#2E3ECA #6C2ECA #BA2ECA
triadic
#6C2ECA #CA6C2E #2ECA6C
tetradic
#6C2ECA #CA2E3E #8CCA2E #2ECABA
square
#6C2ECA #CA2E3E #8CCA2E #2ECABA
split-complementary
#6C2ECA #CABA2E #3ECA2E
monochromatic
#371766 #512398 #6C2ECA #8E5BDA #B08DE5

Accessibility & contrast

On white

7.29
#6C2ECA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#6C2ECA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2ECA
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2ECA#FFFFFF#000000##FFFFFF
##6C2ECA1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CE
Deuteranopia (green-blind)
#0054C7
Tritanopia (blue-blind)
#50597B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6c2eca;
/* rgb */ color: rgb(108, 46, 202);
/* oklch */ color: oklch(48.1% 0.221 294.6);
Tailwind
colors: {
  custom: {
    50: '#9f6edb',
    500: '#6c2eca',
    950: '#000000',
  },
}
SCSS
$custom: #6c2eca;
$custom-light: #9f6edb;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2eca",
  "rgb": {
    "r": 108,
    "g": 46,
    "b": 202
  },
  "hsl": {
    "h": 263.846,
    "s": 62.903,
    "l": 48.627
  },
  "oklch": {
    "l": 0.48147,
    "c": 0.2207,
    "h": 294.6
  },
  "luminance": 0.09406
}

Semantic roles & 50–950 ramp

primary
#6C2ECA
secondary
#B2CF84
accent
#E642A5
background
#FAF6FD
surface
#F4ECFB
border
#CEC7D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #6C2ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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