#6837B4#6837B4

#6837B4 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.9% C 0.186 H 296.4°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#6837B4
RGBrgb(104, 55, 180)
HSLhsl(264, 53%, 46%)
HSVhsv(264, 69%, 71%)
CMYKcmyk(42.2%, 69.4%, 0%, 29.4%)
CIE-LABlab(35.93, 48.23, -58.44)
CIE-LCHlch(35.93, 75.77, 309.53°)
OKLaboklab(46.89% 0.083 -0.167)
OKLCHoklch(46.89% 0.187 296.4)
XYZxyz(15.3112, 8.9704, 44.0959)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6837B4 #83B437
analogous
#3744B4 #6837B4 #A637B4
triadic
#6837B4 #B46837 #37B468
tetradic
#6837B4 #B43744 #83B437 #37B4A6
square
#6837B4 #B43744 #83B437 #37B4A6
split-complementary
#6837B4 #B4A637 #44B437
monochromatic
#321A56 #4D2985 #6837B4 #885BCD #AA8ADB

Accessibility & contrast

On white

7.52
#6837B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#6837B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6837B4
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6837B4#FFFFFF#000000##FFFFFF
##6837B41.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0053B1
Tritanopia (blue-blind)
#545671
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6837b4;
/* rgb */ color: rgb(104, 55, 180);
/* oklch */ color: oklch(46.9% 0.186 296.4);
Tailwind
colors: {
  custom: {
    50: '#9972cb',
    500: '#6837b4',
    950: '#000000',
  },
}
SCSS
$custom: #6837b4;
$custom-light: #9972cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6837b4",
  "rgb": {
    "r": 104,
    "g": 55,
    "b": 180
  },
  "hsl": {
    "h": 263.52,
    "s": 53.191,
    "l": 46.078
  },
  "oklch": {
    "l": 0.4689,
    "c": 0.1865,
    "h": 296.4
  },
  "luminance": 0.08971
}

Semantic roles & 50–950 ramp

primary
#6837B4
secondary
#ABC681
accent
#DD4BA4
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0813
muted
#7E7B82

Preview Lab

Preview with #6837B4

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

Preview Lab → · Contrast checker → · Palette generator →

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