#6835AF#6835AF

#6835AF is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.2% C 0.183 H 297.9°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#6835AF
RGBrgb(104, 53, 175)
HSLhsl(265, 54%, 45%)
HSVhsv(265, 70%, 69%)
CMYKcmyk(40.6%, 69.7%, 0%, 31.4%)
CIE-LABlab(35.17, 47.93, -56.70)
CIE-LCHlch(35.17, 74.25, 310.21°)
OKLaboklab(46.23% 0.0859 -0.1619)
OKLCHoklch(46.23% 0.183 297.9)
XYZxyz(14.7179, 8.5842, 41.4306)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6835AF #7CAF35
analogous
#353FAF #6835AF #A535AF
triadic
#6835AF #AF6835 #35AF68
tetradic
#6835AF #AF353F #7CAF35 #35AFA5
square
#6835AF #AF353F #7CAF35 #35AFA5
split-complementary
#6835AF #AFA535 #3FAF35
monochromatic
#301951 #4C2780 #6835AF #8756CC #A885DA

Accessibility & contrast

On white

7.73
#6835AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#6835AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6835AF#FFFFFF#000000##FFFFFF
##6835AF1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0051AD
Tritanopia (blue-blind)
#57536E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6835af;
/* rgb */ color: rgb(104, 53, 175);
/* oklch */ color: oklch(46.2% 0.183 297.9);
Tailwind
colors: {
  custom: {
    50: '#9970c8',
    500: '#6835af',
    950: '#000000',
  },
}
SCSS
$custom: #6835af;
$custom-light: #9970c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6835af",
  "rgb": {
    "r": 104,
    "g": 53,
    "b": 175
  },
  "hsl": {
    "h": 265.082,
    "s": 53.509,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46228,
    "c": 0.18325,
    "h": 297.9
  },
  "luminance": 0.08584
}

Semantic roles & 50–950 ramp

primary
#6835AF
secondary
#A6C47C
accent
#DD4BA0
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6835AF

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

Preview Lab → · Contrast checker → · Palette generator →

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