#6F31BA#6F31BA

#6F31BA is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.4% C 0.201 H 299.1°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#6F31BA
RGBrgb(111, 49, 186)
HSLhsl(267, 58%, 46%)
HSVhsv(267, 74%, 73%)
CMYKcmyk(40.3%, 73.7%, 0%, 27.1%)
CIE-LABlab(36.22, 53.93, -61.48)
CIE-LCHlch(36.22, 81.79, 311.26°)
OKLaboklab(47.43% 0.0977 -0.1757)
OKLCHoklch(47.43% 0.201 299.1)
XYZxyz(16.5145, 9.1211, 47.3353)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F31BA #7CBA31
analogous
#3137BA #6F31BA #B331BA
triadic
#6F31BA #BA6F31 #31BA6F
tetradic
#6F31BA #BA3137 #7CBA31 #31BAB3
square
#6F31BA #BA3137 #7CBA31 #31BAB3
split-complementary
#6F31BA #BAB331 #37BA31
monochromatic
#351759 #52248A #6F31BA #8E56D2 #AE86DF

Accessibility & contrast

On white

7.44
#6F31BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#6F31BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F31BA
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F31BA#FFFFFF#000000##FFFFFF
##6F31BA1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#0054B7
Tritanopia (blue-blind)
#5D5473
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6f31ba;
/* rgb */ color: rgb(111, 49, 186);
/* oklch */ color: oklch(47.4% 0.201 299.1);
Tailwind
colors: {
  custom: {
    50: '#9f6fd0',
    500: '#6f31ba',
    950: '#000000',
  },
}
SCSS
$custom: #6f31ba;
$custom-light: #9f6fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#6f31ba",
  "rgb": {
    "r": 111,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 267.153,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47432,
    "c": 0.20101,
    "h": 299.1
  },
  "luminance": 0.09121
}

Semantic roles & 50–950 ramp

primary
#6F31BA
secondary
#A7C97E
accent
#E2469B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6F31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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