#6A31C2#6A31C2

#6A31C2 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.5% C 0.209 H 295.1°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#6A31C2
RGBrgb(106, 49, 194)
HSLhsl(264, 60%, 48%)
HSVhsv(264, 75%, 76%)
CMYKcmyk(45.4%, 74.7%, 0%, 23.9%)
CIE-LABlab(36.28, 55.12, -66.10)
CIE-LCHlch(36.28, 86.07, 309.83°)
OKLaboklab(47.55% 0.0886 -0.1894)
OKLCHoklch(47.55% 0.209 295.1)
XYZxyz(16.7771, 9.1554, 51.9117)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A31C2 #89C231
analogous
#3141C2 #6A31C2 #B231C2
triadic
#6A31C2 #C26A31 #31C26A
tetradic
#6A31C2 #C23141 #89C231 #31C2B2
square
#6A31C2 #C23141 #89C231 #31C2B2
split-complementary
#6A31C2 #C2B231 #41C231
monochromatic
#351860 #4F2591 #6A31C2 #8B5BD6 #AD8CE2

Accessibility & contrast

On white

7.42
#6A31C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#6A31C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A31C2
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A31C2#FFFFFF#000000##FFFFFF
##6A31C21.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C6
Deuteranopia (green-blind)
#0053BF
Tritanopia (blue-blind)
#515877
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6a31c2;
/* rgb */ color: rgb(106, 49, 194);
/* oklch */ color: oklch(47.5% 0.209 295.1);
Tailwind
colors: {
  custom: {
    50: '#9d6fd6',
    500: '#6a31c2',
    950: '#000000',
  },
}
SCSS
$custom: #6a31c2;
$custom-light: #9d6fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a31c2",
  "rgb": {
    "r": 106,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 263.586,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4755,
    "c": 0.20909,
    "h": 295.1
  },
  "luminance": 0.09156
}

Semantic roles & 50–950 ramp

primary
#6A31C2
secondary
#AFCC83
accent
#E345A5
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6A31C2

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

Preview Lab → · Contrast checker → · Palette generator →

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