#6C38BA#6C38BA

#6C38BA is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.9% C 0.193 H 296.8°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#6C38BA
RGBrgb(108, 56, 186)
HSLhsl(264, 54%, 47%)
HSVhsv(264, 70%, 73%)
CMYKcmyk(41.9%, 69.9%, 0%, 27.1%)
CIE-LABlab(37.04, 50.06, -60.15)
CIE-LCHlch(37.04, 78.25, 309.77°)
OKLaboklab(47.94% 0.0867 -0.1719)
OKLCHoklch(47.94% 0.193 296.8)
XYZxyz(16.4591, 9.5613, 47.4232)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C38BA #86BA38
analogous
#3845BA #6C38BA #AD38BA
triadic
#6C38BA #BA6C38 #38BA6C
tetradic
#6C38BA #BA3845 #86BA38 #38BAAD
square
#6C38BA #BA3845 #86BA38 #38BAAD
split-complementary
#6C38BA #BAAD38 #45BA38
monochromatic
#351C5C #512A8B #6C38BA #8C60CF #AE8FDD

Accessibility & contrast

On white

7.21
#6C38BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#6C38BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C38BA
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C38BA#FFFFFF#000000##FFFFFF
##6C38BA1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#0055B7
Tritanopia (blue-blind)
#585875
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6c38ba;
/* rgb */ color: rgb(108, 56, 186);
/* oklch */ color: oklch(47.9% 0.193 296.8);
Tailwind
colors: {
  custom: {
    50: '#9d73d0',
    500: '#6c38ba',
    950: '#000000',
  },
}
SCSS
$custom: #6c38ba;
$custom-light: #9d73d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c38ba",
  "rgb": {
    "r": 108,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 264,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47938,
    "c": 0.19251,
    "h": 296.8
  },
  "luminance": 0.09562
}

Semantic roles & 50–950 ramp

primary
#6C38BA
secondary
#AEC886
accent
#DD4BA3
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6C38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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