#6837C4#6837C4

#6837C4 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.2% C 0.205 H 293.0°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#6837C4
RGBrgb(104, 55, 196)
HSLhsl(261, 56%, 49%)
HSVhsv(261, 72%, 77%)
CMYKcmyk(46.9%, 71.9%, 0%, 23.1%)
CIE-LABlab(37.23, 52.49, -65.74)
CIE-LCHlch(37.23, 84.12, 308.61°)
OKLaboklab(48.22% 0.0799 -0.1884)
OKLCHoklch(48.22% 0.205 293)
XYZxyz(17.0362, 9.6604, 53.1809)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6837C4 #93C437
analogous
#374DC4 #6837C4 #AF37C4
triadic
#6837C4 #C46837 #37C468
tetradic
#6837C4 #C4374D #93C437 #37C4AF
square
#6837C4 #C4374D #93C437 #37C4AF
split-complementary
#6837C4 #C4AF37 #4DC437
monochromatic
#351C64 #4F2A94 #6837C4 #8B65D4 #AF94E1

Accessibility & contrast

On white

7.16
#6837C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#6837C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6837C4
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6837C4#FFFFFF#000000##FFFFFF
##6837C41.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C8
Deuteranopia (green-blind)
#0055C1
Tritanopia (blue-blind)
#4C5C7A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6837c4;
/* rgb */ color: rgb(104, 55, 196);
/* oklch */ color: oklch(48.2% 0.205 293.0);
Tailwind
colors: {
  custom: {
    50: '#9b72d7',
    500: '#6837c4',
    950: '#000000',
  },
}
SCSS
$custom: #6837c4;
$custom-light: #9b72d7;
$custom-dark: #000000;
JSON
{
  "hex": "#6837c4",
  "rgb": {
    "r": 104,
    "g": 55,
    "b": 196
  },
  "hsl": {
    "h": 260.851,
    "s": 56.175,
    "l": 49.216
  },
  "oklch": {
    "l": 0.48217,
    "c": 0.2047,
    "h": 293
  },
  "luminance": 0.09661
}

Semantic roles & 50–950 ramp

primary
#6837C4
secondary
#B5CC8B
accent
#DF48AB
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6837C4

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

Preview Lab → · Contrast checker → · Palette generator →

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