#6837BE#6837BE

#6837BE is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.7% C 0.198 H 294.2°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#6837BE
RGBrgb(104, 55, 190)
HSLhsl(262, 55%, 48%)
HSVhsv(262, 71%, 75%)
CMYKcmyk(45.3%, 71.1%, 0%, 25.5%)
CIE-LABlab(36.73, 50.89, -63.03)
CIE-LCHlch(36.73, 81.01, 308.92°)
OKLaboklab(47.71% 0.0812 -0.1805)
OKLCHoklch(47.71% 0.198 294.2)
XYZxyz(16.3668, 9.3927, 49.6558)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6837BE #8DBE37
analogous
#3749BE #6837BE #AB37BE
triadic
#6837BE #BE6837 #37BE68
tetradic
#6837BE #BE3749 #8DBE37 #37BEAB
square
#6837BE #BE3749 #8DBE37 #37BEAB
split-complementary
#6837BE #BEAB37 #49BE37
monochromatic
#341C5F #4E298F #6837BE #8A61D1 #AD90DF

Accessibility & contrast

On white

7.30
#6837BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#6837BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6837BE
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6837BE#FFFFFF#000000##FFFFFF
##6837BE1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C2
Deuteranopia (green-blind)
#0054BB
Tritanopia (blue-blind)
#4F5977
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6837be;
/* rgb */ color: rgb(104, 55, 190);
/* oklch */ color: oklch(47.7% 0.198 294.2);
Tailwind
colors: {
  custom: {
    50: '#9b72d3',
    500: '#6837be',
    950: '#000000',
  },
}
SCSS
$custom: #6837be;
$custom-light: #9b72d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6837be",
  "rgb": {
    "r": 104,
    "g": 55,
    "b": 190
  },
  "hsl": {
    "h": 261.778,
    "s": 55.102,
    "l": 48.039
  },
  "oklch": {
    "l": 0.47711,
    "c": 0.19792,
    "h": 294.2
  },
  "luminance": 0.09393
}

Semantic roles & 50–950 ramp

primary
#6837BE
secondary
#B2CA87
accent
#DE49A8
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6837BE

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

Preview Lab → · Contrast checker → · Palette generator →

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