#6E31B6#6E31B6

#6E31B6 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.0% C 0.197 H 299.6°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#6E31B6
RGBrgb(110, 49, 182)
HSLhsl(268, 58%, 45%)
HSVhsv(268, 73%, 71%)
CMYKcmyk(39.6%, 73.1%, 0%, 28.6%)
CIE-LABlab(35.77, 52.76, -59.85)
CIE-LCHlch(35.77, 79.79, 311.40°)
OKLaboklab(46.99% 0.0971 -0.1709)
OKLCHoklch(46.99% 0.197 299.6)
XYZxyz(15.9701, 8.8888, 45.1212)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E31B6 #79B631
analogous
#3136B6 #6E31B6 #B131B6
triadic
#6E31B6 #B66E31 #31B66E
tetradic
#6E31B6 #B63136 #79B631 #31B6B1
square
#6E31B6 #B63136 #79B631 #31B6B1
split-complementary
#6E31B6 #B6B131 #36B631
monochromatic
#341756 #512486 #6E31B6 #8D53D1 #AD84DE

Accessibility & contrast

On white

7.56
#6E31B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#6E31B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E31B6
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E31B6#FFFFFF#000000##FFFFFF
##6E31B61.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0053B3
Tritanopia (blue-blind)
#5D5271
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6e31b6;
/* rgb */ color: rgb(110, 49, 182);
/* oklch */ color: oklch(47.0% 0.197 299.6);
Tailwind
colors: {
  custom: {
    50: '#9e6fcd',
    500: '#6e31b6',
    950: '#000000',
  },
}
SCSS
$custom: #6e31b6;
$custom-light: #9e6fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#6e31b6",
  "rgb": {
    "r": 110,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 267.519,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46989,
    "c": 0.19657,
    "h": 299.6
  },
  "luminance": 0.08889
}

Semantic roles & 50–950 ramp

primary
#6E31B6
secondary
#A5C77C
accent
#E1479A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6E31B6

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

Preview Lab → · Contrast checker → · Palette generator →

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