#6C38B9#6C38B9

#6C38B9 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.9% C 0.191 H 297.0°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#6C38B9
RGBrgb(108, 56, 185)
HSLhsl(264, 54%, 47%)
HSVhsv(264, 70%, 73%)
CMYKcmyk(41.6%, 69.7%, 0%, 27.5%)
CIE-LABlab(36.96, 49.80, -59.69)
CIE-LCHlch(36.96, 77.73, 309.84°)
OKLaboklab(47.86% 0.0869 -0.1705)
OKLCHoklch(47.86% 0.191 297)
XYZxyz(16.3532, 9.5190, 46.8653)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C38B9 #85B938
analogous
#3845B9 #6C38B9 #AD38B9
triadic
#6C38B9 #B96C38 #38B96C
tetradic
#6C38B9 #B93845 #85B938 #38B9AD
square
#6C38B9 #B93845 #85B938 #38B9AD
split-complementary
#6C38B9 #B9AD38 #45B938
monochromatic
#351C5B #512A8A #6C38B9 #8C5FCF #AE8EDD

Accessibility & contrast

On white

7.23
#6C38B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#6C38B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C38B9
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C38B9#FFFFFF#000000##FFFFFF
##6C38B91.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#0055B6
Tritanopia (blue-blind)
#585874
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6c38b9;
/* rgb */ color: rgb(108, 56, 185);
/* oklch */ color: oklch(47.9% 0.191 297.0);
Tailwind
colors: {
  custom: {
    50: '#9c73cf',
    500: '#6c38b9',
    950: '#000000',
  },
}
SCSS
$custom: #6c38b9;
$custom-light: #9c73cf;
$custom-dark: #000000;
JSON
{
  "hex": "#6c38b9",
  "rgb": {
    "r": 108,
    "g": 56,
    "b": 185
  },
  "hsl": {
    "h": 264.186,
    "s": 53.527,
    "l": 47.255
  },
  "oklch": {
    "l": 0.47858,
    "c": 0.19138,
    "h": 297
  },
  "luminance": 0.09519
}

Semantic roles & 50–950 ramp

primary
#6C38B9
secondary
#ADC885
accent
#DD4BA2
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6C38B9

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

Preview Lab → · Contrast checker → · Palette generator →

#6C38B9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva