#6837A6#6837A6

#6837A6 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.8% C 0.170 H 299.9°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#6837A6
RGBrgb(104, 55, 166)
HSLhsl(266, 50%, 43%)
HSVhsv(266, 67%, 65%)
CMYKcmyk(37.3%, 66.9%, 0%, 34.9%)
CIE-LABlab(34.86, 44.56, -51.83)
CIE-LCHlch(34.86, 68.35, 310.69°)
OKLaboklab(45.79% 0.085 -0.1476)
OKLCHoklch(45.79% 0.17 299.9)
XYZxyz(13.9563, 8.4285, 36.9606)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6837A6 #75A637
analogous
#373EA6 #6837A6 #9F37A6
triadic
#6837A6 #A66837 #37A668
tetradic
#6837A6 #A6373E #75A637 #37A69F
square
#6837A6 #A6373E #75A637 #37A69F
split-complementary
#6837A6 #A69F37 #3EA637
monochromatic
#2E194A #4B2878 #6837A6 #8654C6 #A782D6

Accessibility & contrast

On white

7.82
#6837A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#6837A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6837A6
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6837A6#FFFFFF#000000##FFFFFF
##6837A61.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)
#0052A9
Deuteranopia (green-blind)
#0051A4
Tritanopia (blue-blind)
#5A506A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6837a6;
/* rgb */ color: rgb(104, 55, 166);
/* oklch */ color: oklch(45.8% 0.170 299.9);
Tailwind
colors: {
  custom: {
    50: '#9871c1',
    500: '#6837a6',
    950: '#000000',
  },
}
SCSS
$custom: #6837a6;
$custom-light: #9871c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6837a6",
  "rgb": {
    "r": 104,
    "g": 55,
    "b": 166
  },
  "hsl": {
    "h": 266.486,
    "s": 50.226,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4579,
    "c": 0.17029,
    "h": 299.9
  },
  "luminance": 0.08429
}

Semantic roles & 50–950 ramp

primary
#6837A6
secondary
#A0BF7A
accent
#DA4E9C
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #6837A6

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

Preview Lab → · Contrast checker → · Palette generator →

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