#6837B3#6837B3

#6837B3 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.8% C 0.185 H 296.7°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#6837B3
RGBrgb(104, 55, 179)
HSLhsl(264, 53%, 46%)
HSVhsv(264, 69%, 70%)
CMYKcmyk(41.9%, 69.3%, 0%, 29.8%)
CIE-LABlab(35.85, 47.97, -57.98)
CIE-LCHlch(35.85, 75.25, 309.60°)
OKLaboklab(46.81% 0.0832 -0.1656)
OKLCHoklch(46.81% 0.185 296.7)
XYZxyz(15.2097, 8.9298, 43.5614)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6837B3 #82B337
analogous
#3744B3 #6837B3 #A637B3
triadic
#6837B3 #B36837 #37B368
tetradic
#6837B3 #B33744 #82B337 #37B3A6
square
#6837B3 #B33744 #82B337 #37B3A6
split-complementary
#6837B3 #B3A637 #44B337
monochromatic
#321A55 #4D2984 #6837B3 #885BCD #AA8ADB

Accessibility & contrast

On white

7.54
#6837B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6837B3
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6837B3#FFFFFF#000000##FFFFFF
##6837B31.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#555571
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6837b3;
/* rgb */ color: rgb(104, 55, 179);
/* oklch */ color: oklch(46.8% 0.185 296.7);
Tailwind
colors: {
  custom: {
    50: '#9972cb',
    500: '#6837b3',
    950: '#000000',
  },
}
SCSS
$custom: #6837b3;
$custom-light: #9972cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6837b3",
  "rgb": {
    "r": 104,
    "g": 55,
    "b": 179
  },
  "hsl": {
    "h": 263.71,
    "s": 52.991,
    "l": 45.882
  },
  "oklch": {
    "l": 0.4681,
    "c": 0.18534,
    "h": 296.7
  },
  "luminance": 0.0893
}

Semantic roles & 50–950 ramp

primary
#6837B3
secondary
#AAC581
accent
#DC4BA3
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0813
muted
#7E7B82

Preview Lab

Preview with #6837B3

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

Preview Lab → · Contrast checker → · Palette generator →

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