#6837AB#6837AB

#6837AB is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.2% C 0.176 H 298.6°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#6837AB
RGBrgb(104, 55, 171)
HSLhsl(265, 51%, 44%)
HSVhsv(265, 68%, 67%)
CMYKcmyk(39.2%, 67.8%, 0%, 32.9%)
CIE-LABlab(35.23, 45.86, -54.21)
CIE-LCHlch(35.23, 71.01, 310.23°)
OKLaboklab(46.18% 0.0844 -0.1546)
OKLCHoklch(46.18% 0.176 298.6)
XYZxyz(14.4239, 8.6155, 39.4232)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6837AB #7AAB37
analogous
#3740AB #6837AB #A237AB
triadic
#6837AB #AB6837 #37AB68
tetradic
#6837AB #AB3740 #7AAB37 #37ABA2
square
#6837AB #AB3740 #7AAB37 #37ABA2
split-complementary
#6837AB #ABA237 #40AB37
monochromatic
#30194E #4C287D #6837AB #8756C9 #A885D8

Accessibility & contrast

On white

7.71
#6837AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#6837AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6837AB
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6837AB#FFFFFF#000000##FFFFFF
##6837AB1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#0052A9
Tritanopia (blue-blind)
#58526C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6837ab;
/* rgb */ color: rgb(104, 55, 171);
/* oklch */ color: oklch(46.2% 0.176 298.6);
Tailwind
colors: {
  custom: {
    50: '#9871c5',
    500: '#6837ab',
    950: '#000000',
  },
}
SCSS
$custom: #6837ab;
$custom-light: #9871c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6837ab",
  "rgb": {
    "r": 104,
    "g": 55,
    "b": 171
  },
  "hsl": {
    "h": 265.345,
    "s": 51.327,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46176,
    "c": 0.1761,
    "h": 298.6
  },
  "luminance": 0.08616
}

Semantic roles & 50–950 ramp

primary
#6837AB
secondary
#A4C17C
accent
#DB4D9F
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6837AB

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

Preview Lab → · Contrast checker → · Palette generator →

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