#6835AA#6835AA

#6835AA is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.8% C 0.178 H 299.2°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#6835AA
RGBrgb(104, 53, 170)
HSLhsl(266, 52%, 44%)
HSVhsv(266, 69%, 67%)
CMYKcmyk(38.8%, 68.8%, 0%, 33.3%)
CIE-LABlab(34.79, 46.63, -54.34)
CIE-LCHlch(34.79, 71.61, 310.63°)
OKLaboklab(45.83% 0.0867 -0.155)
OKLCHoklch(45.83% 0.178 299.2)
XYZxyz(14.2359, 8.3914, 38.8921)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6835AA #77AA35
analogous
#353CAA #6835AA #A235AA
triadic
#6835AA #AA6835 #35AA68
tetradic
#6835AA #AA353C #77AA35 #35AAA2
square
#6835AA #AA353C #77AA35 #35AAA2
split-complementary
#6835AA #AAA235 #3CAA35
monochromatic
#2F184D #4B267B #6835AA #8753C9 #A782D8

Accessibility & contrast

On white

7.84
#6835AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#6835AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6835AA
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6835AA#FFFFFF#000000##FFFFFF
##6835AA1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#0051A8
Tritanopia (blue-blind)
#59516B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6835aa;
/* rgb */ color: rgb(104, 53, 170);
/* oklch */ color: oklch(45.8% 0.178 299.2);
Tailwind
colors: {
  custom: {
    50: '#9970c4',
    500: '#6835aa',
    950: '#000000',
  },
}
SCSS
$custom: #6835aa;
$custom-light: #9970c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6835aa",
  "rgb": {
    "r": 104,
    "g": 53,
    "b": 170
  },
  "hsl": {
    "h": 266.154,
    "s": 52.466,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45831,
    "c": 0.17755,
    "h": 299.2
  },
  "luminance": 0.08392
}

Semantic roles & 50–950 ramp

primary
#6835AA
secondary
#A2C17A
accent
#DC4C9D
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6835AA

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

Preview Lab → · Contrast checker → · Palette generator →

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