#6837C3#6837C3

#6837C3 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.1% C 0.204 H 293.2°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#6837C3
RGBrgb(104, 55, 195)
HSLhsl(261, 56%, 49%)
HSVhsv(261, 72%, 76%)
CMYKcmyk(46.7%, 71.8%, 0%, 23.5%)
CIE-LABlab(37.14, 52.22, -65.29)
CIE-LCHlch(37.14, 83.61, 308.66°)
OKLaboklab(48.13% 0.0802 -0.1871)
OKLCHoklch(48.13% 0.204 293.2)
XYZxyz(16.9227, 9.6150, 52.5834)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6837C3 #92C337
analogous
#374CC3 #6837C3 #AE37C3
triadic
#6837C3 #C36837 #37C368
tetradic
#6837C3 #C3374C #92C337 #37C3AE
square
#6837C3 #C3374C #92C337 #37C3AE
split-complementary
#6837C3 #C3AE37 #4CC337
monochromatic
#351C64 #4F2A93 #6837C3 #8B64D3 #AF94E1

Accessibility & contrast

On white

7.18
#6837C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#6837C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6837C3
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6837C3#FFFFFF#000000##FFFFFF
##6837C31.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C7
Deuteranopia (green-blind)
#0055C0
Tritanopia (blue-blind)
#4D5B7A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6837c3;
/* rgb */ color: rgb(104, 55, 195);
/* oklch */ color: oklch(48.1% 0.204 293.2);
Tailwind
colors: {
  custom: {
    50: '#9b72d6',
    500: '#6837c3',
    950: '#000000',
  },
}
SCSS
$custom: #6837c3;
$custom-light: #9b72d6;
$custom-dark: #000000;
JSON
{
  "hex": "#6837c3",
  "rgb": {
    "r": 104,
    "g": 55,
    "b": 195
  },
  "hsl": {
    "h": 261,
    "s": 56,
    "l": 49.02
  },
  "oklch": {
    "l": 0.48132,
    "c": 0.20358,
    "h": 293.2
  },
  "luminance": 0.09616
}

Semantic roles & 50–950 ramp

primary
#6837C3
secondary
#B5CC8A
accent
#DF49AB
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6837C3

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

Preview Lab → · Contrast checker → · Palette generator →

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