#6D31E2#6D31E2

#6D31E2 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.7% C 0.243 H 290.2°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#6D31E2
RGBrgb(109, 49, 226)
HSLhsl(260, 75%, 54%)
HSVhsv(260, 78%, 89%)
CMYKcmyk(51.8%, 78.3%, 0%, 11.4%)
CIE-LABlab(39.48, 63.77, -79.35)
CIE-LCHlch(39.48, 101.79, 308.79°)
OKLaboklab(50.73% 0.0841 -0.2281)
OKLCHoklch(50.73% 0.243 290.2)
XYZxyz(21.1285, 10.9379, 72.9347)
Luminance0.1094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D31E2 #A6E231
analogous
#314EE2 #6D31E2 #C631E2
triadic
#6D31E2 #E26D31 #31E26D
tetradic
#6D31E2 #E2314E #A6E231 #31E2C6
square
#6D31E2 #E2314E #A6E231 #31E2C6
split-complementary
#6D31E2 #E2C631 #4EE231
monochromatic
#3A1386 #511ABB #6D31E2 #9367EA #B99CF1

Accessibility & contrast

On white

6.59
#6D31E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#6D31E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D31E2
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D31E2#FFFFFF#000000##FFFFFF
##6D31E21.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E7
Deuteranopia (green-blind)
#0059DF
Tritanopia (blue-blind)
#42658A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6d31e2;
/* rgb */ color: rgb(109, 49, 226);
/* oklch */ color: oklch(50.7% 0.243 290.2);
Tailwind
colors: {
  custom: {
    50: '#a271ec',
    500: '#6d31e2',
    950: '#000000',
  },
}
SCSS
$custom: #6d31e2;
$custom-light: #a271ec;
$custom-dark: #000000;
JSON
{
  "hex": "#6d31e2",
  "rgb": {
    "r": 109,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 260.339,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50729,
    "c": 0.2431,
    "h": 290.2
  },
  "luminance": 0.10939
}

Semantic roles & 50–950 ramp

primary
#6D31E2
secondary
#C4DD92
accent
#F236B2
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #6D31E2

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

Preview Lab → · Contrast checker → · Palette generator →

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