#6831AA#6831AA

#6831AA is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.3% C 0.183 H 299.8°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#6831AA
RGBrgb(104, 49, 170)
HSLhsl(267, 55%, 43%)
HSVhsv(267, 71%, 67%)
CMYKcmyk(38.8%, 71.2%, 0%, 33.3%)
CIE-LABlab(34.07, 48.62, -55.51)
CIE-LCHlch(34.07, 73.79, 311.22°)
OKLaboklab(45.32% 0.0908 -0.1584)
OKLCHoklch(45.32% 0.183 299.8)
XYZxyz(14.0611, 8.0418, 38.8338)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6831AA #73AA31
analogous
#3136AA #6831AA #A431AA
triadic
#6831AA #AA6831 #31AA68
tetradic
#6831AA #AA3136 #73AA31 #31AAA4
square
#6831AA #AA3136 #73AA31 #31AAA4
split-complementary
#6831AA #AAA431 #36AA31
monochromatic
#2E164B #4B237A #6831AA #864DCC #A67CD9

Accessibility & contrast

On white

8.05
#6831AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#6831AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6831AA#FFFFFF#000000##FFFFFF
##6831AA1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#594E6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6831aa;
/* rgb */ color: rgb(104, 49, 170);
/* oklch */ color: oklch(45.3% 0.183 299.8);
Tailwind
colors: {
  custom: {
    50: '#996ec4',
    500: '#6831aa',
    950: '#000000',
  },
}
SCSS
$custom: #6831aa;
$custom-light: #996ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#6831aa",
  "rgb": {
    "r": 104,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 267.273,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45321,
    "c": 0.18256,
    "h": 299.8
  },
  "luminance": 0.08042
}

Semantic roles & 50–950 ramp

primary
#6831AA
secondary
#9FC275
accent
#DF499B
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6831AA

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

Preview Lab → · Contrast checker → · Palette generator →

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