#6F31B3#6F31B3

#6F31B3 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.9% C 0.194 H 300.8°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#6F31B3
RGBrgb(111, 49, 179)
HSLhsl(269, 57%, 45%)
HSVhsv(269, 73%, 70%)
CMYKcmyk(38%, 72.6%, 0%, 29.8%)
CIE-LABlab(35.66, 52.20, -58.25)
CIE-LCHlch(35.66, 78.22, 311.86°)
OKLaboklab(46.86% 0.0992 -0.1662)
OKLCHoklch(46.86% 0.194 300.8)
XYZxyz(15.7885, 8.8307, 43.5118)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F31B3 #75B331
analogous
#3134B3 #6F31B3 #B031B3
triadic
#6F31B3 #B36F31 #31B36F
tetradic
#6F31B3 #B33134 #75B331 #31B3B0
square
#6F31B3 #B33134 #75B331 #31B3B0
split-complementary
#6F31B3 #B3B031 #34B331
monochromatic
#331753 #512483 #6F31B3 #8E52D0 #AD82DD

Accessibility & contrast

On white

7.59
#6F31B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#6F31B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F31B3
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F31B3#FFFFFF#000000##FFFFFF
##6F31B31.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B7
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#60516F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6f31b3;
/* rgb */ color: rgb(111, 49, 179);
/* oklch */ color: oklch(46.9% 0.194 300.8);
Tailwind
colors: {
  custom: {
    50: '#9e6fcb',
    500: '#6f31b3',
    950: '#000000',
  },
}
SCSS
$custom: #6f31b3;
$custom-light: #9e6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#6f31b3",
  "rgb": {
    "r": 111,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 268.615,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46862,
    "c": 0.19352,
    "h": 300.8
  },
  "luminance": 0.08831
}

Semantic roles & 50–950 ramp

primary
#6F31B3
secondary
#A2C67A
accent
#E04897
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6F31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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