#6F31B6#6F31B6

#6F31B6 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.1% C 0.197 H 300.1°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#6F31B6
RGBrgb(111, 49, 182)
HSLhsl(268, 58%, 45%)
HSVhsv(268, 73%, 71%)
CMYKcmyk(39%, 73.1%, 0%, 28.6%)
CIE-LABlab(35.89, 52.94, -59.64)
CIE-LCHlch(35.89, 79.75, 311.59°)
OKLaboklab(47.1% 0.0986 -0.1703)
OKLCHoklch(47.1% 0.197 300.1)
XYZxyz(16.0953, 8.9534, 45.1271)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F31B6 #78B631
analogous
#3135B6 #6F31B6 #B131B6
triadic
#6F31B6 #B66F31 #31B66F
tetradic
#6F31B6 #B63135 #78B631 #31B6B1
square
#6F31B6 #B63135 #78B631 #31B6B1
split-complementary
#6F31B6 #B6B131 #35B631
monochromatic
#341756 #522486 #6F31B6 #8E53D1 #AE84DE

Accessibility & contrast

On white

7.52
#6F31B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#6F31B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F31B6
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F31B6#FFFFFF#000000##FFFFFF
##6F31B61.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0053B3
Tritanopia (blue-blind)
#5F5271
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6f31b6;
/* rgb */ color: rgb(111, 49, 182);
/* oklch */ color: oklch(47.1% 0.197 300.1);
Tailwind
colors: {
  custom: {
    50: '#9e6fcd',
    500: '#6f31b6',
    950: '#000000',
  },
}
SCSS
$custom: #6f31b6;
$custom-light: #9e6fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#6f31b6",
  "rgb": {
    "r": 111,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 267.97,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.47104,
    "c": 0.19672,
    "h": 300.1
  },
  "luminance": 0.08954
}

Semantic roles & 50–950 ramp

primary
#6F31B6
secondary
#A4C77C
accent
#E14799
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6F31B6

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

Preview Lab → · Contrast checker → · Palette generator →

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