#6F31C2#6F31C2

#6F31C2 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.1% C 0.210 H 297.2°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#6F31C2
RGBrgb(111, 49, 194)
HSLhsl(266, 60%, 48%)
HSVhsv(266, 75%, 76%)
CMYKcmyk(42.8%, 74.7%, 0%, 23.9%)
CIE-LABlab(36.88, 55.93, -65.11)
CIE-LCHlch(36.88, 85.83, 310.67°)
OKLaboklab(48.1% 0.0958 -0.1863)
OKLCHoklch(48.1% 0.21 297.2)
XYZxyz(17.3889, 9.4708, 51.9404)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F31C2 #84C231
analogous
#313CC2 #6F31C2 #B731C2
triadic
#6F31C2 #C26F31 #31C26F
tetradic
#6F31C2 #C2313C #84C231 #31C2B7
square
#6F31C2 #C2313C #84C231 #31C2B7
split-complementary
#6F31C2 #C2B731 #3CC231
monochromatic
#371860 #532591 #6F31C2 #8F5BD6 #B08CE2

Accessibility & contrast

On white

7.26
#6F31C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#6F31C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F31C2
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F31C2#FFFFFF#000000##FFFFFF
##6F31C21.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C6
Deuteranopia (green-blind)
#0055BF
Tritanopia (blue-blind)
#595777
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6f31c2;
/* rgb */ color: rgb(111, 49, 194);
/* oklch */ color: oklch(48.1% 0.210 297.2);
Tailwind
colors: {
  custom: {
    50: '#a06fd5',
    500: '#6f31c2',
    950: '#000000',
  },
}
SCSS
$custom: #6f31c2;
$custom-light: #a06fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#6f31c2",
  "rgb": {
    "r": 111,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 265.655,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.48101,
    "c": 0.20952,
    "h": 297.2
  },
  "luminance": 0.09471
}

Semantic roles & 50–950 ramp

primary
#6F31C2
secondary
#ADCC83
accent
#E3459F
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #6F31C2

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

Preview Lab → · Contrast checker → · Palette generator →

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