#6837D9#6837D9

#6837D9 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.1% C 0.228 H 289.2°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#6837D9
RGBrgb(104, 55, 217)
HSLhsl(258, 68%, 53%)
HSVhsv(258, 75%, 85%)
CMYKcmyk(52.1%, 74.7%, 0%, 14.9%)
CIE-LABlab(39.04, 58.12, -74.92)
CIE-LCHlch(39.04, 94.82, 307.80°)
OKLaboklab(50.06% 0.075 -0.2154)
OKLCHoklch(50.06% 0.228 289.2)
XYZxyz(19.5958, 10.6843, 66.6619)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6837D9 #A8D937
analogous
#3757D9 #6837D9 #B937D9
triadic
#6837D9 #D96837 #37D968
tetradic
#6837D9 #D93757 #A8D937 #37D9B9
square
#6837D9 #D93757 #A8D937 #37D9B9
split-complementary
#6837D9 #D9B937 #57D937
monochromatic
#37187E #4D22B1 #6837D9 #8F6AE3 #B69EED

Accessibility & contrast

On white

6.69
#6837D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#6837D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6837D9
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6837D9#FFFFFF#000000##FFFFFF
##6837D91.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDE
Deuteranopia (green-blind)
#0058D6
Tritanopia (blue-blind)
#3D6486
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6837d9;
/* rgb */ color: rgb(104, 55, 217);
/* oklch */ color: oklch(50.1% 0.228 289.2);
Tailwind
colors: {
  custom: {
    50: '#9e73e6',
    500: '#6837d9',
    950: '#000000',
  },
}
SCSS
$custom: #6837d9;
$custom-light: #9e73e6;
$custom-dark: #000000;
JSON
{
  "hex": "#6837d9",
  "rgb": {
    "r": 104,
    "g": 55,
    "b": 217
  },
  "hsl": {
    "h": 258.148,
    "s": 68.067,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50056,
    "c": 0.22807,
    "h": 289.2
  },
  "luminance": 0.10685
}

Semantic roles & 50–950 ramp

primary
#6837D9
secondary
#C4D993
accent
#EB3DB6
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #6837D9

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

Preview Lab → · Contrast checker → · Palette generator →

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