#6837AC#6837AC

#6837AC is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.3% C 0.177 H 298.4°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#6837AC
RGBrgb(104, 55, 172)
HSLhsl(265, 52%, 45%)
HSVhsv(265, 68%, 67%)
CMYKcmyk(39.5%, 68%, 0%, 32.5%)
CIE-LABlab(35.31, 46.13, -54.69)
CIE-LCHlch(35.31, 71.54, 310.15°)
OKLaboklab(46.25% 0.0842 -0.156)
OKLCHoklch(46.25% 0.177 298.4)
XYZxyz(14.5196, 8.6538, 39.9271)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6837AC #7BAC37
analogous
#3741AC #6837AC #A337AC
triadic
#6837AC #AC6837 #37AC68
tetradic
#6837AC #AC3741 #7BAC37 #37ACA3
square
#6837AC #AC3741 #7BAC37 #37ACA3
split-complementary
#6837AC #ACA337 #41AC37
monochromatic
#30194F #4C287E #6837AC #8757C9 #A885D8

Accessibility & contrast

On white

7.69
#6837AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#6837AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6837AC
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6837AC#FFFFFF#000000##FFFFFF
##6837AC1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B0
Deuteranopia (green-blind)
#0052AA
Tritanopia (blue-blind)
#58536D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6837ac;
/* rgb */ color: rgb(104, 55, 172);
/* oklch */ color: oklch(46.3% 0.177 298.4);
Tailwind
colors: {
  custom: {
    50: '#9971c6',
    500: '#6837ac',
    950: '#000000',
  },
}
SCSS
$custom: #6837ac;
$custom-light: #9971c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6837ac",
  "rgb": {
    "r": 104,
    "g": 55,
    "b": 172
  },
  "hsl": {
    "h": 265.128,
    "s": 51.542,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46254,
    "c": 0.17726,
    "h": 298.4
  },
  "luminance": 0.08654
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6837AC

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

Preview Lab → · Contrast checker → · Palette generator →

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