#6F31B9#6F31B9

#6F31B9 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.3% C 0.200 H 299.3°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#6F31B9
RGBrgb(111, 49, 185)
HSLhsl(267, 58%, 46%)
HSVhsv(267, 74%, 73%)
CMYKcmyk(40%, 73.5%, 0%, 27.5%)
CIE-LABlab(36.14, 53.69, -61.02)
CIE-LCHlch(36.14, 81.28, 311.34°)
OKLaboklab(47.35% 0.0979 -0.1743)
OKLCHoklch(47.35% 0.2 299.3)
XYZxyz(16.4086, 9.0787, 46.7774)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F31B9 #7BB931
analogous
#3137B9 #6F31B9 #B331B9
triadic
#6F31B9 #B96F31 #31B96F
tetradic
#6F31B9 #B93137 #7BB931 #31B9B3
square
#6F31B9 #B93137 #7BB931 #31B9B3
split-complementary
#6F31B9 #B9B331 #37B931
monochromatic
#351758 #522489 #6F31B9 #8E55D2 #AE86DF

Accessibility & contrast

On white

7.46
#6F31B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6F31B9
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F31B9#FFFFFF#000000##FFFFFF
##6F31B91.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#0054B6
Tritanopia (blue-blind)
#5D5472
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6f31b9;
/* rgb */ color: rgb(111, 49, 185);
/* oklch */ color: oklch(47.3% 0.200 299.3);
Tailwind
colors: {
  custom: {
    50: '#9f6fcf',
    500: '#6f31b9',
    950: '#000000',
  },
}
SCSS
$custom: #6f31b9;
$custom-light: #9f6fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#6f31b9",
  "rgb": {
    "r": 111,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 267.353,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.4735,
    "c": 0.19993,
    "h": 299.3
  },
  "luminance": 0.09079
}

Semantic roles & 50–950 ramp

primary
#6F31B9
secondary
#A6C87D
accent
#E1469B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6F31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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