#6837BF#6837BF

#6837BF is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.8% C 0.199 H 294.0°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#6837BF
RGBrgb(104, 55, 191)
HSLhsl(262, 55%, 48%)
HSVhsv(262, 71%, 75%)
CMYKcmyk(45.5%, 71.2%, 0%, 25.1%)
CIE-LABlab(36.81, 51.16, -63.49)
CIE-LCHlch(36.81, 81.53, 308.86°)
OKLaboklab(47.8% 0.081 -0.1818)
OKLCHoklch(47.8% 0.199 294)
XYZxyz(16.4765, 9.4365, 50.2334)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6837BF #8EBF37
analogous
#374ABF #6837BF #AC37BF
triadic
#6837BF #BF6837 #37BF68
tetradic
#6837BF #BF374A #8EBF37 #37BFAC
square
#6837BF #BF374A #8EBF37 #37BFAC
split-complementary
#6837BF #BFAC37 #4ABF37
monochromatic
#341C60 #4E298F #6837BF #8A62D2 #AD91DF

Accessibility & contrast

On white

7.27
#6837BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#6837BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6837BF
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6837BF#FFFFFF#000000##FFFFFF
##6837BF1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C3
Deuteranopia (green-blind)
#0054BC
Tritanopia (blue-blind)
#4F5A77
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6837bf;
/* rgb */ color: rgb(104, 55, 191);
/* oklch */ color: oklch(47.8% 0.199 294.0);
Tailwind
colors: {
  custom: {
    50: '#9b72d3',
    500: '#6837bf',
    950: '#000000',
  },
}
SCSS
$custom: #6837bf;
$custom-light: #9b72d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6837bf",
  "rgb": {
    "r": 104,
    "g": 55,
    "b": 191
  },
  "hsl": {
    "h": 261.618,
    "s": 55.285,
    "l": 48.235
  },
  "oklch": {
    "l": 0.47795,
    "c": 0.19905,
    "h": 294
  },
  "luminance": 0.09437
}

Semantic roles & 50–950 ramp

primary
#6837BF
secondary
#B2CA88
accent
#DF49A9
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6837BF

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

Preview Lab → · Contrast checker → · Palette generator →

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