#6F31C4#6F31C4

#6F31C4 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.3% C 0.212 H 296.8°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#6F31C4
RGBrgb(111, 49, 196)
HSLhsl(265, 60%, 48%)
HSVhsv(265, 75%, 77%)
CMYKcmyk(43.4%, 75%, 0%, 23.1%)
CIE-LABlab(37.04, 56.44, -66.00)
CIE-LCHlch(37.04, 86.84, 310.53°)
OKLaboklab(48.27% 0.0954 -0.1889)
OKLCHoklch(48.27% 0.212 296.8)
XYZxyz(17.6150, 9.5613, 53.1313)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F31C4 #86C431
analogous
#313DC4 #6F31C4 #B831C4
triadic
#6F31C4 #C46F31 #31C46F
tetradic
#6F31C4 #C4313D #86C431 #31C4B8
square
#6F31C4 #C4313D #86C431 #31C4B8
split-complementary
#6F31C4 #C4B831 #3DC431
monochromatic
#381962 #532593 #6F31C4 #905CD6 #B18DE2

Accessibility & contrast

On white

7.21
#6F31C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#6F31C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F31C4
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F31C4#FFFFFF#000000##FFFFFF
##6F31C41.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6f31c4;
/* rgb */ color: rgb(111, 49, 196);
/* oklch */ color: oklch(48.3% 0.212 296.8);
Tailwind
colors: {
  custom: {
    50: '#a06fd7',
    500: '#6f31c4',
    950: '#000000',
  },
}
SCSS
$custom: #6f31c4;
$custom-light: #a06fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#6f31c4",
  "rgb": {
    "r": 111,
    "g": 49,
    "b": 196
  },
  "hsl": {
    "h": 265.306,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.4827,
    "c": 0.21165,
    "h": 296.8
  },
  "luminance": 0.09562
}

Semantic roles & 50–950 ramp

primary
#6F31C4
secondary
#AECD84
accent
#E345A0
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100815
muted
#7F7B83

Preview Lab

Preview with #6F31C4

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

Preview Lab → · Contrast checker → · Palette generator →

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