#6F31AF#6F31AF

#6F31AF is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.5% C 0.189 H 301.9°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#6F31AF
RGBrgb(111, 49, 175)
HSLhsl(270, 56%, 44%)
HSVhsv(270, 72%, 69%)
CMYKcmyk(36.6%, 72%, 0%, 31.4%)
CIE-LABlab(35.34, 51.21, -56.38)
CIE-LCHlch(35.34, 76.17, 312.25°)
OKLaboklab(46.54% 0.0999 -0.1607)
OKLCHoklch(46.54% 0.189 301.9)
XYZxyz(15.3899, 8.6712, 41.4120)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F31AF #71AF31
analogous
#3132AF #6F31AF #AE31AF
triadic
#6F31AF #AF6F31 #31AF6F
tetradic
#6F31AF #AF3132 #71AF31 #31AFAE
square
#6F31AF #AF3132 #71AF31 #31AFAE
split-complementary
#6F31AF #AFAE31 #32AF31
monochromatic
#32164F #51247F #6F31AF #8E4FCE #AC7FDB

Accessibility & contrast

On white

7.68
#6F31AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#6F31AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F31AF
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F31AF#FFFFFF#000000##FFFFFF
##6F31AF1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6f31af;
/* rgb */ color: rgb(111, 49, 175);
/* oklch */ color: oklch(46.5% 0.189 301.9);
Tailwind
colors: {
  custom: {
    50: '#9e6fc8',
    500: '#6f31af',
    950: '#000000',
  },
}
SCSS
$custom: #6f31af;
$custom-light: #9e6fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#6f31af",
  "rgb": {
    "r": 111,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 269.524,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.46542,
    "c": 0.18921,
    "h": 301.9
  },
  "luminance": 0.08671
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6F31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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