#6F31B7#6F31B7

#6F31B7 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.2% C 0.198 H 299.8°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#6F31B7
RGBrgb(111, 49, 183)
HSLhsl(268, 58%, 45%)
HSVhsv(268, 73%, 72%)
CMYKcmyk(39.3%, 73.2%, 0%, 28.2%)
CIE-LABlab(35.97, 53.19, -60.10)
CIE-LCHlch(35.97, 80.26, 311.51°)
OKLaboklab(47.19% 0.0983 -0.1716)
OKLCHoklch(47.19% 0.198 299.8)
XYZxyz(16.1990, 8.9949, 45.6733)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F31B7 #79B731
analogous
#3136B7 #6F31B7 #B231B7
triadic
#6F31B7 #B76F31 #31B76F
tetradic
#6F31B7 #B73136 #79B731 #31B7B2
square
#6F31B7 #B73136 #79B731 #31B7B2
split-complementary
#6F31B7 #B7B231 #36B731
monochromatic
#341756 #522487 #6F31B7 #8E54D1 #AE84DE

Accessibility & contrast

On white

7.50
#6F31B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#6F31B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F31B7
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F31B7#FFFFFF#000000##FFFFFF
##6F31B71.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BB
Deuteranopia (green-blind)
#0054B4
Tritanopia (blue-blind)
#5E5371
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6f31b7;
/* rgb */ color: rgb(111, 49, 183);
/* oklch */ color: oklch(47.2% 0.198 299.8);
Tailwind
colors: {
  custom: {
    50: '#9f6fce',
    500: '#6f31b7',
    950: '#000000',
  },
}
SCSS
$custom: #6f31b7;
$custom-light: #9f6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#6f31b7",
  "rgb": {
    "r": 111,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 267.761,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.47186,
    "c": 0.1978,
    "h": 299.8
  },
  "luminance": 0.08995
}

Semantic roles & 50–950 ramp

primary
#6F31B7
secondary
#A5C87C
accent
#E1479A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6F31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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