#6C38B8#6C38B8

#6C38B8 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.8% C 0.190 H 297.2°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#6C38B8
RGBrgb(108, 56, 184)
HSLhsl(264, 53%, 47%)
HSVhsv(264, 70%, 72%)
CMYKcmyk(41.3%, 69.6%, 0%, 27.8%)
CIE-LABlab(36.89, 49.54, -59.22)
CIE-LCHlch(36.89, 77.21, 309.91°)
OKLaboklab(47.78% 0.087 -0.1692)
OKLCHoklch(47.78% 0.19 297.2)
XYZxyz(16.2480, 9.4769, 46.3113)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C38B8 #84B838
analogous
#3844B8 #6C38B8 #AC38B8
triadic
#6C38B8 #B86C38 #38B86C
tetradic
#6C38B8 #B83844 #84B838 #38B8AC
square
#6C38B8 #B83844 #84B838 #38B8AC
split-complementary
#6C38B8 #B8AC38 #44B838
monochromatic
#351B5A #502A89 #6C38B8 #8C5FCE #AE8EDD

Accessibility & contrast

On white

7.25
#6C38B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C38B8
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C38B8#FFFFFF#000000##FFFFFF
##6C38B81.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BC
Deuteranopia (green-blind)
#0055B5
Tritanopia (blue-blind)
#595774
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6c38b8;
/* rgb */ color: rgb(108, 56, 184);
/* oklch */ color: oklch(47.8% 0.190 297.2);
Tailwind
colors: {
  custom: {
    50: '#9c73ce',
    500: '#6c38b8',
    950: '#000000',
  },
}
SCSS
$custom: #6c38b8;
$custom-light: #9c73ce;
$custom-dark: #000000;
JSON
{
  "hex": "#6c38b8",
  "rgb": {
    "r": 108,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 264.375,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.47778,
    "c": 0.19025,
    "h": 297.2
  },
  "luminance": 0.09477
}

Semantic roles & 50–950 ramp

primary
#6C38B8
secondary
#ACC785
accent
#DD4BA2
background
#FAF7FC
surface
#F3EDF9
border
#CDC8D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6C38B8

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

Preview Lab → · Contrast checker → · Palette generator →

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