#6837AF#6837AF

#6837AF is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.5% C 0.181 H 297.6°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#6837AF
RGBrgb(104, 55, 175)
HSLhsl(265, 52%, 45%)
HSVhsv(265, 69%, 69%)
CMYKcmyk(40.6%, 68.6%, 0%, 31.4%)
CIE-LABlab(35.54, 46.91, -56.10)
CIE-LCHlch(35.54, 73.13, 309.90°)
OKLaboklab(46.49% 0.0838 -0.1601)
OKLCHoklch(46.49% 0.181 297.6)
XYZxyz(14.8110, 8.7703, 41.4616)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6837AF #7EAF37
analogous
#3742AF #6837AF #A437AF
triadic
#6837AF #AF6837 #37AF68
tetradic
#6837AF #AF3742 #7EAF37 #37AFA4
square
#6837AF #AF3742 #7EAF37 #37AFA4
split-complementary
#6837AF #AFA437 #42AF37
monochromatic
#311A52 #4C2880 #6837AF #8759CB #A987D9

Accessibility & contrast

On white

7.62
#6837AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#6837AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6837AF
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6837AF#FFFFFF#000000##FFFFFF
##6837AF1.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#0052AD
Tritanopia (blue-blind)
#57546E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6837af;
/* rgb */ color: rgb(104, 55, 175);
/* oklch */ color: oklch(46.5% 0.181 297.6);
Tailwind
colors: {
  custom: {
    50: '#9971c8',
    500: '#6837af',
    950: '#000000',
  },
}
SCSS
$custom: #6837af;
$custom-light: #9971c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6837af",
  "rgb": {
    "r": 104,
    "g": 55,
    "b": 175
  },
  "hsl": {
    "h": 264.5,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4649,
    "c": 0.18074,
    "h": 297.6
  },
  "luminance": 0.08771
}

Semantic roles & 50–950 ramp

primary
#6837AF
secondary
#A7C37F
accent
#DC4CA1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6837AF

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

Preview Lab → · Contrast checker → · Palette generator →

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