#6837B8#6837B8

#6837B8 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.2% C 0.191 H 295.5°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#6837B8
RGBrgb(104, 55, 184)
HSLhsl(263, 54%, 47%)
HSVhsv(263, 70%, 72%)
CMYKcmyk(43.5%, 70.1%, 0%, 27.8%)
CIE-LABlab(36.24, 49.29, -60.29)
CIE-LCHlch(36.24, 77.88, 309.27°)
OKLaboklab(47.22% 0.0823 -0.1724)
OKLCHoklch(47.22% 0.191 295.5)
XYZxyz(15.7245, 9.1358, 46.2730)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6837B8 #87B837
analogous
#3746B8 #6837B8 #A937B8
triadic
#6837B8 #B86837 #37B868
tetradic
#6837B8 #B83746 #87B837 #37B8A9
square
#6837B8 #B83746 #87B837 #37B8A9
split-complementary
#6837B8 #B8A937 #46B837
monochromatic
#331B5A #4D2989 #6837B8 #885DCF #AB8DDD

Accessibility & contrast

On white

7.43
#6837B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#6837B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6837B8
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6837B8#FFFFFF#000000##FFFFFF
##6837B81.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#0053B5
Tritanopia (blue-blind)
#525773
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6837b8;
/* rgb */ color: rgb(104, 55, 184);
/* oklch */ color: oklch(47.2% 0.191 295.5);
Tailwind
colors: {
  custom: {
    50: '#9a72ce',
    500: '#6837b8',
    950: '#000000',
  },
}
SCSS
$custom: #6837b8;
$custom-light: #9a72ce;
$custom-dark: #000000;
JSON
{
  "hex": "#6837b8",
  "rgb": {
    "r": 104,
    "g": 55,
    "b": 184
  },
  "hsl": {
    "h": 262.791,
    "s": 53.975,
    "l": 46.863
  },
  "oklch": {
    "l": 0.47215,
    "c": 0.19109,
    "h": 295.5
  },
  "luminance": 0.09136
}

Semantic roles & 50–950 ramp

primary
#6837B8
secondary
#AEC784
accent
#DD4AA6
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0814
muted
#7E7B82

Preview Lab

Preview with #6837B8

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

Preview Lab → · Contrast checker → · Palette generator →

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