#6E31AF#6E31AF

#6E31AF is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.4% C 0.189 H 301.4°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#6E31AF
RGBrgb(110, 49, 175)
HSLhsl(269, 56%, 44%)
HSVhsv(269, 72%, 69%)
CMYKcmyk(37.1%, 72%, 0%, 31.4%)
CIE-LABlab(35.22, 51.02, -56.60)
CIE-LCHlch(35.22, 76.20, 312.04°)
OKLaboklab(46.42% 0.0985 -0.1613)
OKLCHoklch(46.42% 0.189 301.4)
XYZxyz(15.2647, 8.6067, 41.4062)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E31AF #72AF31
analogous
#3133AF #6E31AF #AD31AF
triadic
#6E31AF #AF6E31 #31AF6E
tetradic
#6E31AF #AF3133 #72AF31 #31AFAD
square
#6E31AF #AF3133 #72AF31 #31AFAD
split-complementary
#6E31AF #AFAD31 #33AF31
monochromatic
#32164F #50247F #6E31AF #8D4FCE #AC7FDB

Accessibility & contrast

On white

7.72
#6E31AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#6E31AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E31AF
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E31AF#FFFFFF#000000##FFFFFF
##6E31AF1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0052AC
Tritanopia (blue-blind)
#60506D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6e31af;
/* rgb */ color: rgb(110, 49, 175);
/* oklch */ color: oklch(46.4% 0.189 301.4);
Tailwind
colors: {
  custom: {
    50: '#9d6ec8',
    500: '#6e31af',
    950: '#000000',
  },
}
SCSS
$custom: #6e31af;
$custom-light: #9d6ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#6e31af",
  "rgb": {
    "r": 110,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 269.048,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.46424,
    "c": 0.18904,
    "h": 301.4
  },
  "luminance": 0.08607
}

Semantic roles & 50–950 ramp

primary
#6E31AF
secondary
#9FC478
accent
#E04896
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6E31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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