#6A31C8#6A31C8

#6A31C8 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.216 H 293.8°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#6A31C8
RGBrgb(106, 49, 200)
HSLhsl(263, 61%, 49%)
HSVhsv(263, 76%, 78%)
CMYKcmyk(47%, 75.5%, 0%, 21.6%)
CIE-LABlab(36.80, 56.67, -68.76)
CIE-LCHlch(36.80, 89.10, 309.49°)
OKLaboklab(48.07% 0.087 -0.1972)
OKLCHoklch(48.07% 0.216 293.8)
XYZxyz(17.4646, 9.4304, 55.5324)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A31C8 #8FC831
analogous
#3144C8 #6A31C8 #B631C8
triadic
#6A31C8 #C86A31 #31C86A
tetradic
#6A31C8 #C83144 #8FC831 #31C8B6
square
#6A31C8 #C83144 #8FC831 #31C8B6
split-complementary
#6A31C8 #C8B631 #44C831
monochromatic
#361966 #502597 #6A31C8 #8C5FD8 #AF90E4

Accessibility & contrast

On white

7.28
#6A31C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#6A31C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A31C8
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A31C8#FFFFFF#000000##FFFFFF
##6A31C81.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CC
Deuteranopia (green-blind)
#0054C5
Tritanopia (blue-blind)
#4E5A7B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6a31c8;
/* rgb */ color: rgb(106, 49, 200);
/* oklch */ color: oklch(48.1% 0.216 293.8);
Tailwind
colors: {
  custom: {
    50: '#9d6fda',
    500: '#6a31c8',
    950: '#000000',
  },
}
SCSS
$custom: #6a31c8;
$custom-light: #9d6fda;
$custom-dark: #000000;
JSON
{
  "hex": "#6a31c8",
  "rgb": {
    "r": 106,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 262.649,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.48073,
    "c": 0.21555,
    "h": 293.8
  },
  "luminance": 0.09431
}

Semantic roles & 50–950 ramp

primary
#6A31C8
secondary
#B3CE86
accent
#E444A7
background
#FAF6FD
surface
#F4ECFB
border
#CEC7D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6A31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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