#6A31B8#6A31B8

#6A31B8 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.7% C 0.198 H 297.3°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#6A31B8
RGBrgb(106, 49, 184)
HSLhsl(265, 58%, 46%)
HSVhsv(265, 73%, 72%)
CMYKcmyk(42.4%, 73.4%, 0%, 27.8%)
CIE-LABlab(35.44, 52.56, -61.59)
CIE-LCHlch(35.44, 80.97, 310.48°)
OKLaboklab(46.7% 0.0909 -0.1762)
OKLCHoklch(46.7% 0.198 297.3)
XYZxyz(15.6916, 8.7212, 46.1947)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A31B8 #7FB831
analogous
#313CB8 #6A31B8 #AD31B8
triadic
#6A31B8 #B86A31 #31B86A
tetradic
#6A31B8 #B8313C #7FB831 #31B8AD
square
#6A31B8 #B8313C #7FB831 #31B8AD
split-complementary
#6A31B8 #B8AD31 #3CB831
monochromatic
#321757 #4E2488 #6A31B8 #8955D2 #AB85DE

Accessibility & contrast

On white

7.65
#6A31B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#6A31B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A31B8
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A31B8#FFFFFF#000000##FFFFFF
##6A31B81.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BC
Deuteranopia (green-blind)
#0052B5
Tritanopia (blue-blind)
#565472
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6a31b8;
/* rgb */ color: rgb(106, 49, 184);
/* oklch */ color: oklch(46.7% 0.198 297.3);
Tailwind
colors: {
  custom: {
    50: '#9c6ece',
    500: '#6a31b8',
    950: '#000000',
  },
}
SCSS
$custom: #6a31b8;
$custom-light: #9c6ece;
$custom-dark: #000000;
JSON
{
  "hex": "#6a31b8",
  "rgb": {
    "r": 106,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 265.333,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46699,
    "c": 0.19823,
    "h": 297.3
  },
  "luminance": 0.08721
}

Semantic roles & 50–950 ramp

primary
#6A31B8
secondary
#A8C87D
accent
#E147A0
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6A31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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