#6831AD#6831AD

#6831AD is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.6% C 0.186 H 299.1°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#6831AD
RGBrgb(104, 49, 173)
HSLhsl(267, 56%, 44%)
HSVhsv(267, 72%, 68%)
CMYKcmyk(39.9%, 71.7%, 0%, 32.2%)
CIE-LABlab(34.31, 49.39, -56.91)
CIE-LCHlch(34.31, 75.36, 310.95°)
OKLaboklab(45.56% 0.0903 -0.1625)
OKLCHoklch(45.56% 0.186 299.1)
XYZxyz(14.3482, 8.1566, 40.3455)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6831AD #76AD31
analogous
#3138AD #6831AD #A631AD
triadic
#6831AD #AD6831 #31AD68
tetradic
#6831AD #AD3138 #76AD31 #31ADA6
square
#6831AD #AD3138 #76AD31 #31ADA6
split-complementary
#6831AD #ADA631 #38AD31
monochromatic
#2F164E #4B237D #6831AD #864ECD #A77EDA

Accessibility & contrast

On white

7.98
#6831AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#6831AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6831AD
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6831AD#FFFFFF#000000##FFFFFF
##6831AD1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B1
Deuteranopia (green-blind)
#0050AA
Tritanopia (blue-blind)
#58506C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6831ad;
/* rgb */ color: rgb(104, 49, 173);
/* oklch */ color: oklch(45.6% 0.186 299.1);
Tailwind
colors: {
  custom: {
    50: '#996ec6',
    500: '#6831ad',
    950: '#000000',
  },
}
SCSS
$custom: #6831ad;
$custom-light: #996ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#6831ad",
  "rgb": {
    "r": 104,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 266.613,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45564,
    "c": 0.18588,
    "h": 299.1
  },
  "luminance": 0.08157
}

Semantic roles & 50–950 ramp

primary
#6831AD
secondary
#A1C377
accent
#DF499C
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6831AD

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

Preview Lab → · Contrast checker → · Palette generator →

#6831AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva