#6E31B2#6E31B2

#6E31B2 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.7% C 0.192 H 300.6°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#6E31B2
RGBrgb(110, 49, 178)
HSLhsl(268, 57%, 45%)
HSVhsv(268, 72%, 70%)
CMYKcmyk(38.2%, 72.5%, 0%, 30.2%)
CIE-LABlab(35.45, 51.77, -58.00)
CIE-LCHlch(35.45, 77.74, 311.75°)
OKLaboklab(46.66% 0.0979 -0.1655)
OKLCHoklch(46.66% 0.192 300.6)
XYZxyz(15.5626, 8.7259, 42.9752)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E31B2 #75B231
analogous
#3135B2 #6E31B2 #AF31B2
triadic
#6E31B2 #B26E31 #31B26E
tetradic
#6E31B2 #B23135 #75B231 #31B2AF
square
#6E31B2 #B23135 #75B231 #31B2AF
split-complementary
#6E31B2 #B2AF31 #35B231
monochromatic
#331752 #502482 #6E31B2 #8D51CF #AC81DC

Accessibility & contrast

On white

7.65
#6E31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#6E31B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E31B2
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E31B2#FFFFFF#000000##FFFFFF
##6E31B21.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0053AF
Tritanopia (blue-blind)
#5F516E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6e31b2;
/* rgb */ color: rgb(110, 49, 178);
/* oklch */ color: oklch(46.7% 0.192 300.6);
Tailwind
colors: {
  custom: {
    50: '#9d6fca',
    500: '#6e31b2',
    950: '#000000',
  },
}
SCSS
$custom: #6e31b2;
$custom-light: #9d6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#6e31b2",
  "rgb": {
    "r": 110,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 268.372,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46664,
    "c": 0.19228,
    "h": 300.6
  },
  "luminance": 0.08726
}

Semantic roles & 50–950 ramp

primary
#6E31B2
secondary
#A1C579
accent
#E04898
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6E31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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