#6E31B9#6E31B9

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

Color values

HEX#6E31B9
RGBrgb(110, 49, 185)
HSLhsl(267, 58%, 46%)
HSVhsv(267, 74%, 73%)
CMYKcmyk(40.5%, 73.5%, 0%, 27.5%)
CIE-LABlab(36.01, 53.51, -61.23)
CIE-LCHlch(36.01, 81.32, 311.15°)
OKLaboklab(47.24% 0.0965 -0.175)
OKLCHoklch(47.24% 0.2 298.9)
XYZxyz(16.2835, 9.0142, 46.7715)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E31B9 #7CB931
analogous
#3138B9 #6E31B9 #B231B9
triadic
#6E31B9 #B96E31 #31B96E
tetradic
#6E31B9 #B93138 #7CB931 #31B9B2
square
#6E31B9 #B93138 #7CB931 #31B9B2
split-complementary
#6E31B9 #B9B231 #38B931
monochromatic
#341758 #512489 #6E31B9 #8D55D2 #AE86DF

Accessibility & contrast

On white

7.49
#6E31B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#6E31B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E31B9
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E31B9#FFFFFF#000000##FFFFFF
##6E31B91.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#0053B6
Tritanopia (blue-blind)
#5C5472
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6e31b9;
/* rgb */ color: rgb(110, 49, 185);
/* oklch */ color: oklch(47.2% 0.200 298.9);
Tailwind
colors: {
  custom: {
    50: '#9e6fcf',
    500: '#6e31b9',
    950: '#000000',
  },
}
SCSS
$custom: #6e31b9;
$custom-light: #9e6fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#6e31b9",
  "rgb": {
    "r": 110,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 266.912,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47235,
    "c": 0.19979,
    "h": 298.9
  },
  "luminance": 0.09014
}

Semantic roles & 50–950 ramp

primary
#6E31B9
secondary
#A7C87D
accent
#E1469C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6E31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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