#6837B9#6837B9

#6837B9 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.3% C 0.192 H 295.3°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#6837B9
RGBrgb(104, 55, 185)
HSLhsl(263, 54%, 47%)
HSVhsv(263, 70%, 73%)
CMYKcmyk(43.8%, 70.3%, 0%, 27.5%)
CIE-LABlab(36.32, 49.56, -60.75)
CIE-LCHlch(36.32, 78.40, 309.21°)
OKLaboklab(47.3% 0.0821 -0.1738)
OKLCHoklch(47.3% 0.192 295.3)
XYZxyz(15.8297, 9.1778, 46.8270)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6837B9 #88B937
analogous
#3747B9 #6837B9 #A937B9
triadic
#6837B9 #B96837 #37B968
tetradic
#6837B9 #B93747 #88B937 #37B9A9
square
#6837B9 #B93747 #88B937 #37B9A9
split-complementary
#6837B9 #B9A937 #47B937
monochromatic
#331B5B #4D298A #6837B9 #895ECF #AB8DDD

Accessibility & contrast

On white

7.41
#6837B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#6837B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6837B9
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6837B9#FFFFFF#000000##FFFFFF
##6837B91.007.412.847.41
#FFFFFF7.411.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#0053B6
Tritanopia (blue-blind)
#525774
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6837b9;
/* rgb */ color: rgb(104, 55, 185);
/* oklch */ color: oklch(47.3% 0.192 295.3);
Tailwind
colors: {
  custom: {
    50: '#9a72cf',
    500: '#6837b9',
    950: '#000000',
  },
}
SCSS
$custom: #6837b9;
$custom-light: #9a72cf;
$custom-dark: #000000;
JSON
{
  "hex": "#6837b9",
  "rgb": {
    "r": 104,
    "g": 55,
    "b": 185
  },
  "hsl": {
    "h": 262.615,
    "s": 54.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.47297,
    "c": 0.19222,
    "h": 295.3
  },
  "luminance": 0.09178
}

Semantic roles & 50–950 ramp

primary
#6837B9
secondary
#AEC884
accent
#DE4AA6
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0814
muted
#7E7B82

Preview Lab

Preview with #6837B9

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

Preview Lab → · Contrast checker → · Palette generator →

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