#6F31E2#6F31E2

#6F31E2 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.9% C 0.243 H 291.0°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#6F31E2
RGBrgb(111, 49, 226)
HSLhsl(261, 75%, 54%)
HSVhsv(261, 78%, 89%)
CMYKcmyk(50.9%, 78.3%, 0%, 11.4%)
CIE-LABlab(39.69, 64.02, -78.98)
CIE-LCHlch(39.69, 101.67, 309.03°)
OKLaboklab(50.93% 0.087 -0.227)
OKLCHoklch(50.93% 0.243 291)
XYZxyz(21.3774, 11.0662, 72.9464)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F31E2 #A4E231
analogous
#314CE2 #6F31E2 #C831E2
triadic
#6F31E2 #E26F31 #31E26F
tetradic
#6F31E2 #E2314C #A4E231 #31E2C8
square
#6F31E2 #E2314C #A4E231 #31E2C8
split-complementary
#6F31E2 #E2C831 #4CE231
monochromatic
#3B1386 #531ABB #6F31E2 #9567EA #BA9CF1

Accessibility & contrast

On white

6.54
#6F31E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#6F31E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F31E2
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F31E2#FFFFFF#000000##FFFFFF
##6F31E21.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E7
Deuteranopia (green-blind)
#005ADF
Tritanopia (blue-blind)
#46648A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6f31e2;
/* rgb */ color: rgb(111, 49, 226);
/* oklch */ color: oklch(50.9% 0.243 291.0);
Tailwind
colors: {
  custom: {
    50: '#a471ec',
    500: '#6f31e2',
    950: '#000000',
  },
}
SCSS
$custom: #6f31e2;
$custom-light: #a471ec;
$custom-dark: #000000;
JSON
{
  "hex": "#6f31e2",
  "rgb": {
    "r": 111,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 261.017,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50928,
    "c": 0.24309,
    "h": 291
  },
  "luminance": 0.11067
}

Semantic roles & 50–950 ramp

primary
#6F31E2
secondary
#C3DD92
accent
#F236B0
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #6F31E2

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

Preview Lab → · Contrast checker → · Palette generator →

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