#6D31C2#6D31C2

#6D31C2 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.9% C 0.209 H 296.4°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#6D31C2
RGBrgb(109, 49, 194)
HSLhsl(265, 60%, 48%)
HSVhsv(265, 75%, 76%)
CMYKcmyk(43.8%, 74.7%, 0%, 23.9%)
CIE-LABlab(36.64, 55.61, -65.51)
CIE-LCHlch(36.64, 85.93, 310.33°)
OKLaboklab(47.88% 0.0929 -0.1876)
OKLCHoklch(47.88% 0.209 296.4)
XYZxyz(17.1400, 9.3425, 51.9287)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D31C2 #86C231
analogous
#313DC2 #6D31C2 #B631C2
triadic
#6D31C2 #C26D31 #31C26D
tetradic
#6D31C2 #C2313D #86C231 #31C2B6
square
#6D31C2 #C2313D #86C231 #31C2B6
split-complementary
#6D31C2 #C2B631 #3DC231
monochromatic
#361860 #522591 #6D31C2 #8E5BD6 #AF8CE2

Accessibility & contrast

On white

7.32
#6D31C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#6D31C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D31C2
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D31C2#FFFFFF#000000##FFFFFF
##6D31C21.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C6
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#565777
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6d31c2;
/* rgb */ color: rgb(109, 49, 194);
/* oklch */ color: oklch(47.9% 0.209 296.4);
Tailwind
colors: {
  custom: {
    50: '#9e6fd6',
    500: '#6d31c2',
    950: '#000000',
  },
}
SCSS
$custom: #6d31c2;
$custom-light: #9e6fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#6d31c2",
  "rgb": {
    "r": 109,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 264.828,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.47878,
    "c": 0.20932,
    "h": 296.4
  },
  "luminance": 0.09343
}

Semantic roles & 50–950 ramp

primary
#6D31C2
secondary
#AECC83
accent
#E345A2
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6D31C2

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

Preview Lab → · Contrast checker → · Palette generator →

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