#6837A2#6837A2

#6837A2 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.5% C 0.166 H 301.1°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#6837A2
RGBrgb(104, 55, 162)
HSLhsl(267, 49%, 43%)
HSVhsv(267, 66%, 64%)
CMYKcmyk(35.8%, 66%, 0%, 36.5%)
CIE-LABlab(34.57, 43.52, -49.89)
CIE-LCHlch(34.57, 66.21, 311.10°)
OKLaboklab(45.49% 0.0854 -0.1419)
OKLCHoklch(45.49% 0.166 301.1)
XYZxyz(13.5951, 8.2840, 35.0581)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6837A2 #71A237
analogous
#373BA2 #6837A2 #9E37A2
triadic
#6837A2 #A26837 #37A268
tetradic
#6837A2 #A2373B #71A237 #37A29E
square
#6837A2 #A2373B #71A237 #37A29E
split-complementary
#6837A2 #A29E37 #3BA237
monochromatic
#2D1847 #4B2774 #6837A2 #8652C4 #A680D4

Accessibility & contrast

On white

7.90
#6837A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#6837A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6837A2
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6837A2#FFFFFF#000000##FFFFFF
##6837A21.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#0451A0
Tritanopia (blue-blind)
#5C4F67
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6837a2;
/* rgb */ color: rgb(104, 55, 162);
/* oklch */ color: oklch(45.5% 0.166 301.1);
Tailwind
colors: {
  custom: {
    50: '#9871be',
    500: '#6837a2',
    950: '#000000',
  },
}
SCSS
$custom: #6837a2;
$custom-light: #9871be;
$custom-dark: #000000;
JSON
{
  "hex": "#6837a2",
  "rgb": {
    "r": 104,
    "g": 55,
    "b": 162
  },
  "hsl": {
    "h": 267.477,
    "s": 49.309,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45487,
    "c": 0.16561,
    "h": 301.1
  },
  "luminance": 0.08284
}

Semantic roles & 50–950 ramp

primary
#6837A2
secondary
#9DBD78
accent
#D94F9A
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #6837A2

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

Preview Lab → · Contrast checker → · Palette generator →

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