#6F31C9#6F31C9

#6F31C9 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.7% C 0.217 H 295.7°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#6F31C9
RGBrgb(111, 49, 201)
HSLhsl(264, 61%, 49%)
HSVhsv(264, 76%, 79%)
CMYKcmyk(44.8%, 75.6%, 0%, 21.2%)
CIE-LABlab(37.47, 57.69, -68.22)
CIE-LCHlch(37.47, 89.35, 310.22°)
OKLaboklab(48.7% 0.0941 -0.1955)
OKLCHoklch(48.7% 0.217 295.7)
XYZxyz(18.1936, 9.7927, 56.1786)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F31C9 #8BC931
analogous
#313FC9 #6F31C9 #BB31C9
triadic
#6F31C9 #C96F31 #31C96F
tetradic
#6F31C9 #C9313F #8BC931 #31C9BB
square
#6F31C9 #C9313F #8BC931 #31C9BB
split-complementary
#6F31C9 #C9BB31 #3FC931
monochromatic
#391967 #542598 #6F31C9 #905FD8 #B290E4

Accessibility & contrast

On white

7.10
#6F31C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#6F31C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F31C9
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F31C9#FFFFFF#000000##FFFFFF
##6F31C91.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CD
Deuteranopia (green-blind)
#0056C6
Tritanopia (blue-blind)
#565A7B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6f31c9;
/* rgb */ color: rgb(111, 49, 201);
/* oklch */ color: oklch(48.7% 0.217 295.7);
Tailwind
colors: {
  custom: {
    50: '#a070db',
    500: '#6f31c9',
    950: '#000000',
  },
}
SCSS
$custom: #6f31c9;
$custom-light: #a070db;
$custom-dark: #000000;
JSON
{
  "hex": "#6f31c9",
  "rgb": {
    "r": 111,
    "g": 49,
    "b": 201
  },
  "hsl": {
    "h": 264.474,
    "s": 60.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.48699,
    "c": 0.21693,
    "h": 295.7
  },
  "luminance": 0.09793
}

Semantic roles & 50–950 ramp

primary
#6F31C9
secondary
#B1CF87
accent
#E444A3
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #6F31C9

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

Preview Lab → · Contrast checker → · Palette generator →

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