#6E31B8#6E31B8

#6E31B8 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.2% C 0.199 H 299.1°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#6E31B8
RGBrgb(110, 49, 184)
HSLhsl(267, 58%, 46%)
HSVhsv(267, 73%, 72%)
CMYKcmyk(40.2%, 73.4%, 0%, 27.8%)
CIE-LABlab(35.93, 53.26, -60.77)
CIE-LCHlch(35.93, 80.81, 311.23°)
OKLaboklab(47.15% 0.0967 -0.1736)
OKLCHoklch(47.15% 0.199 299.1)
XYZxyz(16.1783, 8.9721, 46.2175)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E31B8 #7BB831
analogous
#3137B8 #6E31B8 #B131B8
triadic
#6E31B8 #B86E31 #31B86E
tetradic
#6E31B8 #B83137 #7BB831 #31B8B1
square
#6E31B8 #B83137 #7BB831 #31B8B1
split-complementary
#6E31B8 #B8B131 #37B831
monochromatic
#341757 #512488 #6E31B8 #8D55D2 #AD85DE

Accessibility & contrast

On white

7.52
#6E31B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#6E31B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E31B8
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E31B8#FFFFFF#000000##FFFFFF
##6E31B81.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BC
Deuteranopia (green-blind)
#0053B5
Tritanopia (blue-blind)
#5C5372
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6e31b8;
/* rgb */ color: rgb(110, 49, 184);
/* oklch */ color: oklch(47.2% 0.199 299.1);
Tailwind
colors: {
  custom: {
    50: '#9e6fce',
    500: '#6e31b8',
    950: '#000000',
  },
}
SCSS
$custom: #6e31b8;
$custom-light: #9e6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#6e31b8",
  "rgb": {
    "r": 110,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 267.111,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.47153,
    "c": 0.19873,
    "h": 299.1
  },
  "luminance": 0.08972
}

Semantic roles & 50–950 ramp

primary
#6E31B8
secondary
#A6C87D
accent
#E1479B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6E31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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