#6835AB#6835AB

#6835AB is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.9% C 0.179 H 299.0°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#6835AB
RGBrgb(104, 53, 171)
HSLhsl(266, 53%, 44%)
HSVhsv(266, 69%, 67%)
CMYKcmyk(39.2%, 69%, 0%, 32.9%)
CIE-LABlab(34.86, 46.89, -54.82)
CIE-LCHlch(34.86, 72.14, 310.54°)
OKLaboklab(45.91% 0.0865 -0.1563)
OKLCHoklch(45.91% 0.179 299)
XYZxyz(14.3309, 8.4294, 39.3922)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6835AB #78AB35
analogous
#353DAB #6835AB #A335AB
triadic
#6835AB #AB6835 #35AB68
tetradic
#6835AB #AB353D #78AB35 #35ABA3
square
#6835AB #AB353D #78AB35 #35ABA3
split-complementary
#6835AB #ABA335 #3DAB35
monochromatic
#2F184E #4C277C #6835AB #8753CA #A782D8

Accessibility & contrast

On white

7.82
#6835AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#6835AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6835AB#FFFFFF#000000##FFFFFF
##6835AB1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AF
Deuteranopia (green-blind)
#0051A9
Tritanopia (blue-blind)
#58516C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6835ab;
/* rgb */ color: rgb(104, 53, 171);
/* oklch */ color: oklch(45.9% 0.179 299.0);
Tailwind
colors: {
  custom: {
    50: '#9970c5',
    500: '#6835ab',
    950: '#000000',
  },
}
SCSS
$custom: #6835ab;
$custom-light: #9970c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6835ab",
  "rgb": {
    "r": 104,
    "g": 53,
    "b": 171
  },
  "hsl": {
    "h": 265.932,
    "s": 52.679,
    "l": 43.922
  },
  "oklch": {
    "l": 0.4591,
    "c": 0.17869,
    "h": 299
  },
  "luminance": 0.0843
}

Semantic roles & 50–950 ramp

primary
#6835AB
secondary
#A3C27A
accent
#DC4C9E
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6835AB

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

Preview Lab → · Contrast checker → · Palette generator →

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