#6F31AA#6F31AA

#6F31AA is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.1% C 0.184 H 303.3°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#6F31AA
RGBrgb(111, 49, 170)
HSLhsl(271, 55%, 43%)
HSVhsv(271, 71%, 67%)
CMYKcmyk(34.7%, 71.2%, 0%, 33.3%)
CIE-LABlab(34.96, 49.99, -54.02)
CIE-LCHlch(34.96, 73.60, 312.78°)
OKLaboklab(46.15% 0.1008 -0.1537)
OKLCHoklch(46.15% 0.184 303.3)
XYZxyz(14.9079, 8.4784, 38.8735)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F31AA #6CAA31
analogous
#3331AA #6F31AA #AA31A8
triadic
#6F31AA #AA6F31 #31AA6F
tetradic
#6F31AA #AA3331 #6CAA31 #31A8AA
square
#6F31AA #AA3331 #6CAA31 #31A8AA
split-complementary
#6F31AA #A8AA31 #31AA33
monochromatic
#31164B #50237A #6F31AA #8E4DCC #AC7CD9

Accessibility & contrast

On white

7.79
#6F31AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#6F31AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F31AA
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F31AA#FFFFFF#000000##FFFFFF
##6F31AA1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#0052A7
Tritanopia (blue-blind)
#634E6A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6f31aa;
/* rgb */ color: rgb(111, 49, 170);
/* oklch */ color: oklch(46.1% 0.184 303.3);
Tailwind
colors: {
  custom: {
    50: '#9d6ec4',
    500: '#6f31aa',
    950: '#000000',
  },
}
SCSS
$custom: #6f31aa;
$custom-light: #9d6ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#6f31aa",
  "rgb": {
    "r": 111,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 270.744,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.46149,
    "c": 0.18384,
    "h": 303.3
  },
  "luminance": 0.08478
}

Semantic roles & 50–950 ramp

primary
#6F31AA
secondary
#9AC275
accent
#DF4992
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6F31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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