#6837B6#6837B6

#6837B6 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.1% C 0.189 H 296.0°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#6837B6
RGBrgb(104, 55, 182)
HSLhsl(263, 54%, 46%)
HSVhsv(263, 70%, 71%)
CMYKcmyk(42.9%, 69.8%, 0%, 28.6%)
CIE-LABlab(36.09, 48.76, -59.37)
CIE-LCHlch(36.09, 76.83, 309.40°)
OKLaboklab(47.05% 0.0827 -0.1697)
OKLCHoklch(47.05% 0.189 296)
XYZxyz(15.5164, 9.0525, 45.1767)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6837B6 #85B637
analogous
#3746B6 #6837B6 #A837B6
triadic
#6837B6 #B66837 #37B668
tetradic
#6837B6 #B63746 #85B637 #37B6A8
square
#6837B6 #B63746 #85B637 #37B6A8
split-complementary
#6837B6 #B6A837 #46B637
monochromatic
#321B58 #4D2987 #6837B6 #885CCE #AA8BDC

Accessibility & contrast

On white

7.47
#6837B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#6837B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6837B6
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6837B6#FFFFFF#000000##FFFFFF
##6837B61.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BA
Deuteranopia (green-blind)
#0053B3
Tritanopia (blue-blind)
#535672
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6837b6;
/* rgb */ color: rgb(104, 55, 182);
/* oklch */ color: oklch(47.1% 0.189 296.0);
Tailwind
colors: {
  custom: {
    50: '#9a72cd',
    500: '#6837b6',
    950: '#000000',
  },
}
SCSS
$custom: #6837b6;
$custom-light: #9a72cd;
$custom-dark: #000000;
JSON
{
  "hex": "#6837b6",
  "rgb": {
    "r": 104,
    "g": 55,
    "b": 182
  },
  "hsl": {
    "h": 263.15,
    "s": 53.586,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47052,
    "c": 0.18879,
    "h": 296
  },
  "luminance": 0.09053
}

Semantic roles & 50–950 ramp

primary
#6837B6
secondary
#ACC682
accent
#DD4BA5
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0814
muted
#7E7B82

Preview Lab

Preview with #6837B6

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

Preview Lab → · Contrast checker → · Palette generator →

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