#6F31C5#6F31C5

#6F31C5 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.4% C 0.213 H 296.6°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#6F31C5
RGBrgb(111, 49, 197)
HSLhsl(265, 60%, 48%)
HSVhsv(265, 75%, 77%)
CMYKcmyk(43.7%, 75.1%, 0%, 22.7%)
CIE-LABlab(37.13, 56.69, -66.45)
CIE-LCHlch(37.13, 87.34, 310.47°)
OKLaboklab(48.36% 0.0951 -0.1903)
OKLCHoklch(48.36% 0.213 296.6)
XYZxyz(17.7292, 9.6070, 53.7327)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F31C5 #87C531
analogous
#313DC5 #6F31C5 #B931C5
triadic
#6F31C5 #C56F31 #31C56F
tetradic
#6F31C5 #C5313D #87C531 #31C5B9
square
#6F31C5 #C5313D #87C531 #31C5B9
split-complementary
#6F31C5 #C5B931 #3DC531
monochromatic
#381963 #532594 #6F31C5 #905DD7 #B18EE3

Accessibility & contrast

On white

7.19
#6F31C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#6F31C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F31C5
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F31C5#FFFFFF#000000##FFFFFF
##6F31C51.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C9
Deuteranopia (green-blind)
#0055C2
Tritanopia (blue-blind)
#585879
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6f31c5;
/* rgb */ color: rgb(111, 49, 197);
/* oklch */ color: oklch(48.4% 0.213 296.6);
Tailwind
colors: {
  custom: {
    50: '#a070d8',
    500: '#6f31c5',
    950: '#000000',
  },
}
SCSS
$custom: #6f31c5;
$custom-light: #a070d8;
$custom-dark: #000000;
JSON
{
  "hex": "#6f31c5",
  "rgb": {
    "r": 111,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 265.135,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.48356,
    "c": 0.2127,
    "h": 296.6
  },
  "luminance": 0.09607
}

Semantic roles & 50–950 ramp

primary
#6F31C5
secondary
#AFCD85
accent
#E344A1
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100815
muted
#7F7B83

Preview Lab

Preview with #6F31C5

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

Preview Lab → · Contrast checker → · Palette generator →

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