#6831A2#6831A2

#6831A2 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.7% C 0.174 H 302.1°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#6831A2
RGBrgb(104, 49, 162)
HSLhsl(269, 54%, 41%)
HSVhsv(269, 70%, 64%)
CMYKcmyk(35.8%, 69.8%, 0%, 36.5%)
CIE-LABlab(33.45, 46.60, -51.70)
CIE-LCHlch(33.45, 69.60, 312.03°)
OKLaboklab(44.69% 0.0921 -0.1472)
OKLCHoklch(44.69% 0.174 302.1)
XYZxyz(13.3273, 7.7483, 34.9689)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6831A2 #6BA231
analogous
#3132A2 #6831A2 #A131A2
triadic
#6831A2 #A26831 #31A268
tetradic
#6831A2 #A23132 #6BA231 #31A2A1
square
#6831A2 #A23132 #6BA231 #31A2A1
split-complementary
#6831A2 #A2A131 #32A231
monochromatic
#2C1544 #4A2373 #6831A2 #8648C8 #A577D6

Accessibility & contrast

On white

8.24
#6831A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#6831A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6831A2
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6831A2#FFFFFF#000000##FFFFFF
##6831A21.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#004EA0
Tritanopia (blue-blind)
#5C4B66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6831a2;
/* rgb */ color: rgb(104, 49, 162);
/* oklch */ color: oklch(44.7% 0.174 302.1);
Tailwind
colors: {
  custom: {
    50: '#986dbe',
    500: '#6831a2',
    950: '#000000',
  },
}
SCSS
$custom: #6831a2;
$custom-light: #986dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#6831a2",
  "rgb": {
    "r": 104,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 269.204,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44688,
    "c": 0.17363,
    "h": 302.1
  },
  "luminance": 0.07748
}

Semantic roles & 50–950 ramp

primary
#6831A2
secondary
#98BE71
accent
#DD4B96
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6831A2

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

Preview Lab → · Contrast checker → · Palette generator →

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