#6D31AF#6D31AF

#6D31AF is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.3% C 0.189 H 300.9°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#6D31AF
RGBrgb(109, 49, 175)
HSLhsl(269, 56%, 44%)
HSVhsv(269, 72%, 69%)
CMYKcmyk(37.7%, 72%, 0%, 31.4%)
CIE-LABlab(35.09, 50.83, -56.81)
CIE-LCHlch(35.09, 76.23, 311.82°)
OKLaboklab(46.31% 0.0971 -0.162)
OKLCHoklch(46.31% 0.189 300.9)
XYZxyz(15.1410, 8.5429, 41.4004)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D31AF #73AF31
analogous
#3134AF #6D31AF #AC31AF
triadic
#6D31AF #AF6D31 #31AF6D
tetradic
#6D31AF #AF3134 #73AF31 #31AFAC
square
#6D31AF #AF3134 #73AF31 #31AFAC
split-complementary
#6D31AF #AFAC31 #34AF31
monochromatic
#31164F #4F247F #6D31AF #8C4FCE #AB7FDB

Accessibility & contrast

On white

7.75
#6D31AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#6D31AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D31AF
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D31AF#FFFFFF#000000##FFFFFF
##6D31AF1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0052AC
Tritanopia (blue-blind)
#5E506D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6d31af;
/* rgb */ color: rgb(109, 49, 175);
/* oklch */ color: oklch(46.3% 0.189 300.9);
Tailwind
colors: {
  custom: {
    50: '#9c6ec8',
    500: '#6d31af',
    950: '#000000',
  },
}
SCSS
$custom: #6d31af;
$custom-light: #9c6ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#6d31af",
  "rgb": {
    "r": 109,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 268.571,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.46306,
    "c": 0.18886,
    "h": 300.9
  },
  "luminance": 0.08543
}

Semantic roles & 50–950 ramp

primary
#6D31AF
secondary
#A0C478
accent
#E04898
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6D31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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