#6C1E98#6C1E98

#6C1E98 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.4% C 0.186 H 309.4°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#6C1E98
RGBrgb(108, 30, 152)
HSLhsl(278, 67%, 36%)
HSVhsv(278, 80%, 60%)
CMYKcmyk(28.9%, 80.3%, 0%, 40.4%)
CIE-LABlab(30.36, 53.18, -50.62)
CIE-LCHlch(30.36, 73.42, 316.41°)
OKLaboklab(42.38% 0.1181 -0.1437)
OKLCHoklch(42.38% 0.186 309.4)
XYZxyz(12.3150, 6.3839, 30.2832)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C1E98 #4A981E
analogous
#2F1E98 #6C1E98 #981E87
triadic
#6C1E98 #986C1E #1E986C
tetradic
#6C1E98 #982F1E #4A981E #1E8798
square
#6C1E98 #982F1E #4A981E #1E8798
split-complementary
#6C1E98 #87981E #1E982F
monochromatic
#230A32 #481465 #6C1E98 #9028CB #AB53DD

Accessibility & contrast

On white

9.22
#6C1E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#6C1E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C1E98
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C1E98#FFFFFF#000000##FFFFFF
##6C1E981.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#004896
Tritanopia (blue-blind)
#653D5B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6c1e98;
/* rgb */ color: rgb(108, 30, 152);
/* oklch */ color: oklch(42.4% 0.186 309.4);
Tailwind
colors: {
  custom: {
    50: '#9b64b7',
    500: '#6c1e98',
    950: '#000000',
  },
}
SCSS
$custom: #6c1e98;
$custom-light: #9b64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6c1e98",
  "rgb": {
    "r": 108,
    "g": 30,
    "b": 152
  },
  "hsl": {
    "h": 278.361,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42376,
    "c": 0.18604,
    "h": 309.4
  },
  "luminance": 0.06384
}

Semantic roles & 50–950 ramp

primary
#6C1E98
secondary
#79C051
accent
#EA3E7C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6C1E98

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

Preview Lab → · Contrast checker → · Palette generator →

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