#6C38D1#6C38D1

#6C38D1 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.9% C 0.218 H 292.1°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#6C38D1
RGBrgb(108, 56, 209)
HSLhsl(260, 62%, 52%)
HSVhsv(260, 73%, 82%)
CMYKcmyk(48.3%, 73.2%, 0%, 18%)
CIE-LABlab(38.93, 56.11, -70.48)
CIE-LCHlch(38.93, 90.09, 308.52°)
OKLaboklab(49.86% 0.082 -0.2022)
OKLCHoklch(49.86% 0.218 292.1)
XYZxyz(19.1039, 10.6193, 61.3524)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C38D1 #9DD138
analogous
#3851D1 #6C38D1 #B838D1
triadic
#6C38D1 #D16C38 #38D16C
tetradic
#6C38D1 #D13851 #9DD138 #38D1B8
square
#6C38D1 #D13851 #9DD138 #38D1B8
split-complementary
#6C38D1 #D1B838 #51D138
monochromatic
#391B74 #5226A6 #6C38D1 #916ADC #B59BE8

Accessibility & contrast

On white

6.72
#6C38D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#6C38D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C38D1
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C38D1#FFFFFF#000000##FFFFFF
##6C38D11.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED5
Deuteranopia (green-blind)
#0059CE
Tritanopia (blue-blind)
#4B6182
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6c38d1;
/* rgb */ color: rgb(108, 56, 209);
/* oklch */ color: oklch(49.9% 0.218 292.1);
Tailwind
colors: {
  custom: {
    50: '#9f74e0',
    500: '#6c38d1',
    950: '#000000',
  },
}
SCSS
$custom: #6c38d1;
$custom-light: #9f74e0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c38d1",
  "rgb": {
    "r": 108,
    "g": 56,
    "b": 209
  },
  "hsl": {
    "h": 260.392,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.49862,
    "c": 0.21822,
    "h": 292.1
  },
  "luminance": 0.1062
}

Semantic roles & 50–950 ramp

primary
#6C38D1
secondary
#BDD491
accent
#E642AE
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #6C38D1

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

Preview Lab → · Contrast checker → · Palette generator →

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