#6E31B5#6E31B5

#6E31B5 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.9% C 0.196 H 299.9°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#6E31B5
RGBrgb(110, 49, 181)
HSLhsl(268, 57%, 45%)
HSVhsv(268, 73%, 71%)
CMYKcmyk(39.2%, 72.9%, 0%, 29%)
CIE-LABlab(35.69, 52.51, -59.39)
CIE-LCHlch(35.69, 79.28, 311.48°)
OKLaboklab(46.91% 0.0973 -0.1696)
OKLCHoklch(46.91% 0.196 299.9)
XYZxyz(15.8671, 8.8477, 44.5789)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E31B5 #78B531
analogous
#3136B5 #6E31B5 #B031B5
triadic
#6E31B5 #B56E31 #31B56E
tetradic
#6E31B5 #B53136 #78B531 #31B5B0
square
#6E31B5 #B53136 #78B531 #31B5B0
split-complementary
#6E31B5 #B5B031 #36B531
monochromatic
#331755 #512485 #6E31B5 #8D53D0 #AD83DD

Accessibility & contrast

On white

7.58
#6E31B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#6E31B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E31B5
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E31B5#FFFFFF#000000##FFFFFF
##6E31B51.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0053B2
Tritanopia (blue-blind)
#5E5270
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6e31b5;
/* rgb */ color: rgb(110, 49, 181);
/* oklch */ color: oklch(46.9% 0.196 299.9);
Tailwind
colors: {
  custom: {
    50: '#9e6fcc',
    500: '#6e31b5',
    950: '#000000',
  },
}
SCSS
$custom: #6e31b5;
$custom-light: #9e6fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#6e31b5",
  "rgb": {
    "r": 110,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 267.727,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46907,
    "c": 0.1955,
    "h": 299.9
  },
  "luminance": 0.08848
}

Semantic roles & 50–950 ramp

primary
#6E31B5
secondary
#A4C77B
accent
#E1479A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6E31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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