#6831A3#6831A3

#6831A3 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.8% C 0.175 H 301.8°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#6831A3
RGBrgb(104, 49, 163)
HSLhsl(269, 54%, 42%)
HSVhsv(269, 70%, 64%)
CMYKcmyk(36.2%, 69.9%, 0%, 36.1%)
CIE-LABlab(33.53, 46.85, -52.18)
CIE-LCHlch(33.53, 70.13, 311.92°)
OKLaboklab(44.77% 0.092 -0.1486)
OKLCHoklch(44.77% 0.175 301.8)
XYZxyz(13.4165, 7.7840, 35.4389)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6831A3 #6CA331
analogous
#3133A3 #6831A3 #A131A3
triadic
#6831A3 #A36831 #31A368
tetradic
#6831A3 #A33133 #6CA331 #31A3A1
square
#6831A3 #A33133 #6CA331 #31A3A1
split-complementary
#6831A3 #A3A131 #33A331
monochromatic
#2C1545 #4A2374 #6831A3 #8649C8 #A678D6

Accessibility & contrast

On white

8.21
#6831A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#6831A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6831A3
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6831A3#FFFFFF#000000##FFFFFF
##6831A31.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA6
Deuteranopia (green-blind)
#004EA1
Tritanopia (blue-blind)
#5C4C66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6831a3;
/* rgb */ color: rgb(104, 49, 163);
/* oklch */ color: oklch(44.8% 0.175 301.8);
Tailwind
colors: {
  custom: {
    50: '#986dbf',
    500: '#6831a3',
    950: '#000000',
  },
}
SCSS
$custom: #6831a3;
$custom-light: #986dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#6831a3",
  "rgb": {
    "r": 104,
    "g": 49,
    "b": 163
  },
  "hsl": {
    "h": 268.947,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44766,
    "c": 0.17474,
    "h": 301.8
  },
  "luminance": 0.07784
}

Semantic roles & 50–950 ramp

primary
#6831A3
secondary
#99BF71
accent
#DD4B96
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6831A3

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

Preview Lab → · Contrast checker → · Palette generator →

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