#6E31E2#6E31E2

#6E31E2 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.8% C 0.243 H 290.6°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#6E31E2
RGBrgb(110, 49, 226)
HSLhsl(261, 75%, 54%)
HSVhsv(261, 78%, 89%)
CMYKcmyk(51.3%, 78.3%, 0%, 11.4%)
CIE-LABlab(39.58, 63.89, -79.16)
CIE-LCHlch(39.58, 101.73, 308.91°)
OKLaboklab(50.83% 0.0855 -0.2275)
OKLCHoklch(50.83% 0.243 290.6)
XYZxyz(21.2522, 11.0017, 72.9405)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E31E2 #A5E231
analogous
#314DE2 #6E31E2 #C731E2
triadic
#6E31E2 #E26E31 #31E26E
tetradic
#6E31E2 #E2314D #A5E231 #31E2C7
square
#6E31E2 #E2314D #A5E231 #31E2C7
split-complementary
#6E31E2 #E2C731 #4DE231
monochromatic
#3A1386 #521ABB #6E31E2 #9467EA #BA9CF1

Accessibility & contrast

On white

6.56
#6E31E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#6E31E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6E31E2
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E31E2#FFFFFF#000000##FFFFFF
##6E31E21.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E7
Deuteranopia (green-blind)
#0059DF
Tritanopia (blue-blind)
#44648A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6e31e2;
/* rgb */ color: rgb(110, 49, 226);
/* oklch */ color: oklch(50.8% 0.243 290.6);
Tailwind
colors: {
  custom: {
    50: '#a371ec',
    500: '#6e31e2',
    950: '#000000',
  },
}
SCSS
$custom: #6e31e2;
$custom-light: #a371ec;
$custom-dark: #000000;
JSON
{
  "hex": "#6e31e2",
  "rgb": {
    "r": 110,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 260.678,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50828,
    "c": 0.24309,
    "h": 290.6
  },
  "luminance": 0.11003
}

Semantic roles & 50–950 ramp

primary
#6E31E2
secondary
#C3DD92
accent
#F236B1
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #6E31E2

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

Preview Lab → · Contrast checker → · Palette generator →

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