#6B31AE#6B31AE

#6B31AE is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.0% C 0.187 H 300.2°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#6B31AE
RGBrgb(107, 49, 174)
HSLhsl(268, 56%, 44%)
HSVhsv(268, 72%, 68%)
CMYKcmyk(38.5%, 71.8%, 0%, 31.8%)
CIE-LABlab(34.76, 50.21, -56.76)
CIE-LCHlch(34.76, 75.78, 311.49°)
OKLaboklab(45.99% 0.0944 -0.1619)
OKLCHoklch(45.99% 0.187 300.2)
XYZxyz(14.7998, 8.3783, 40.8736)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B31AE #74AE31
analogous
#3135AE #6B31AE #A931AE
triadic
#6B31AE #AE6B31 #31AE6B
tetradic
#6B31AE #AE3135 #74AE31 #31AEA9
square
#6B31AE #AE3135 #74AE31 #31AEA9
split-complementary
#6B31AE #AEA931 #35AE31
monochromatic
#30164E #4E247E #6B31AE #8A4FCD #A97FDB

Accessibility & contrast

On white

7.85
#6B31AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#6B31AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B31AE
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B31AE#FFFFFF#000000##FFFFFF
##6B31AE1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#0051AB
Tritanopia (blue-blind)
#5C506C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6b31ae;
/* rgb */ color: rgb(107, 49, 174);
/* oklch */ color: oklch(46.0% 0.187 300.2);
Tailwind
colors: {
  custom: {
    50: '#9b6ec7',
    500: '#6b31ae',
    950: '#000000',
  },
}
SCSS
$custom: #6b31ae;
$custom-light: #9b6ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#6b31ae",
  "rgb": {
    "r": 107,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 267.84,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45991,
    "c": 0.18744,
    "h": 300.2
  },
  "luminance": 0.08378
}

Semantic roles & 50–950 ramp

primary
#6B31AE
secondary
#A0C477
accent
#DF4899
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6B31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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