#6F31B2#6F31B2

#6F31B2 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.8% C 0.192 H 301.1°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#6F31B2
RGBrgb(111, 49, 178)
HSLhsl(269, 57%, 45%)
HSVhsv(269, 72%, 70%)
CMYKcmyk(37.6%, 72.5%, 0%, 30.2%)
CIE-LABlab(35.58, 51.95, -57.79)
CIE-LCHlch(35.58, 77.71, 311.96°)
OKLaboklab(46.78% 0.0993 -0.1648)
OKLCHoklch(46.78% 0.192 301.1)
XYZxyz(15.6878, 8.7904, 42.9811)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F31B2 #74B231
analogous
#3134B2 #6F31B2 #B031B2
triadic
#6F31B2 #B26F31 #31B26F
tetradic
#6F31B2 #B23134 #74B231 #31B2B0
square
#6F31B2 #B23134 #74B231 #31B2B0
split-complementary
#6F31B2 #B2B031 #34B231
monochromatic
#331752 #512482 #6F31B2 #8E51CF #AD81DC

Accessibility & contrast

On white

7.61
#6F31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#6F31B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F31B2
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F31B2#FFFFFF#000000##FFFFFF
##6F31B21.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0053AF
Tritanopia (blue-blind)
#60516E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6f31b2;
/* rgb */ color: rgb(111, 49, 178);
/* oklch */ color: oklch(46.8% 0.192 301.1);
Tailwind
colors: {
  custom: {
    50: '#9e6fca',
    500: '#6f31b2',
    950: '#000000',
  },
}
SCSS
$custom: #6f31b2;
$custom-light: #9e6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#6f31b2",
  "rgb": {
    "r": 111,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 268.837,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46781,
    "c": 0.19244,
    "h": 301.1
  },
  "luminance": 0.0879
}

Semantic roles & 50–950 ramp

primary
#6F31B2
secondary
#A1C579
accent
#E04897
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6F31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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