#6C31AF#6C31AF

#6C31AF is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.2% C 0.189 H 300.5°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#6C31AF
RGBrgb(108, 49, 175)
HSLhsl(268, 56%, 44%)
HSVhsv(268, 72%, 69%)
CMYKcmyk(38.3%, 72%, 0%, 31.4%)
CIE-LABlab(34.96, 50.65, -57.02)
CIE-LCHlch(34.96, 76.26, 311.61°)
OKLaboklab(46.19% 0.0956 -0.1627)
OKLCHoklch(46.19% 0.189 300.5)
XYZxyz(15.0186, 8.4798, 41.3946)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C31AF #74AF31
analogous
#3135AF #6C31AF #AB31AF
triadic
#6C31AF #AF6C31 #31AF6C
tetradic
#6C31AF #AF3135 #74AF31 #31AFAB
square
#6C31AF #AF3135 #74AF31 #31AFAB
split-complementary
#6C31AF #AFAB31 #35AF31
monochromatic
#31164F #4E247F #6C31AF #8B4FCE #AA7FDB

Accessibility & contrast

On white

7.79
#6C31AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#6C31AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C31AF
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C31AF#FFFFFF#000000##FFFFFF
##6C31AF1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0051AC
Tritanopia (blue-blind)
#5D506D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6c31af;
/* rgb */ color: rgb(108, 49, 175);
/* oklch */ color: oklch(46.2% 0.189 300.5);
Tailwind
colors: {
  custom: {
    50: '#9c6ec8',
    500: '#6c31af',
    950: '#000000',
  },
}
SCSS
$custom: #6c31af;
$custom-light: #9c6ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#6c31af",
  "rgb": {
    "r": 108,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 268.095,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.46189,
    "c": 0.18869,
    "h": 300.5
  },
  "luminance": 0.0848
}

Semantic roles & 50–950 ramp

primary
#6C31AF
secondary
#A0C478
accent
#E04899
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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