#6837BA#6837BA

#6837BA is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.4% C 0.193 H 295.1°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#6837BA
RGBrgb(104, 55, 186)
HSLhsl(262, 54%, 47%)
HSVhsv(262, 70%, 73%)
CMYKcmyk(44.1%, 70.4%, 0%, 27.1%)
CIE-LABlab(36.40, 49.82, -61.21)
CIE-LCHlch(36.40, 78.92, 309.15°)
OKLaboklab(47.38% 0.0819 -0.1751)
OKLCHoklch(47.38% 0.193 295.1)
XYZxyz(15.9357, 9.2202, 47.3849)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6837BA #89BA37
analogous
#3747BA #6837BA #AA37BA
triadic
#6837BA #BA6837 #37BA68
tetradic
#6837BA #BA3747 #89BA37 #37BAAA
square
#6837BA #BA3747 #89BA37 #37BAAA
split-complementary
#6837BA #BAAA37 #47BA37
monochromatic
#331B5C #4E298B #6837BA #895FD0 #AC8EDE

Accessibility & contrast

On white

7.38
#6837BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6837BA
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6837BA#FFFFFF#000000##FFFFFF
##6837BA1.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#0054B7
Tritanopia (blue-blind)
#515875
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6837ba;
/* rgb */ color: rgb(104, 55, 186);
/* oklch */ color: oklch(47.4% 0.193 295.1);
Tailwind
colors: {
  custom: {
    50: '#9a72d0',
    500: '#6837ba',
    950: '#000000',
  },
}
SCSS
$custom: #6837ba;
$custom-light: #9a72d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6837ba",
  "rgb": {
    "r": 104,
    "g": 55,
    "b": 186
  },
  "hsl": {
    "h": 262.443,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.4738,
    "c": 0.19336,
    "h": 295.1
  },
  "luminance": 0.09221
}

Semantic roles & 50–950 ramp

primary
#6837BA
secondary
#AFC885
accent
#DE4AA6
background
#FAF7FC
surface
#F3EDF9
border
#CDC8D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6837BA

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

Preview Lab → · Contrast checker → · Palette generator →

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