#6C38C7#6C38C7

#6C38C7 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.0% C 0.207 H 294.0°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#6C38C7
RGBrgb(108, 56, 199)
HSLhsl(262, 56%, 50%)
HSVhsv(262, 72%, 78%)
CMYKcmyk(45.7%, 71.9%, 0%, 22%)
CIE-LABlab(38.09, 53.47, -66.05)
CIE-LCHlch(38.09, 84.98, 308.99°)
OKLaboklab(49.01% 0.0842 -0.1892)
OKLCHoklch(49.01% 0.207 294)
XYZxyz(17.9045, 10.1395, 55.0355)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C38C7 #93C738
analogous
#384CC7 #6C38C7 #B338C7
triadic
#6C38C7 #C76C38 #38C76C
tetradic
#6C38C7 #C7384C #93C738 #38C7B3
square
#6C38C7 #C7384C #93C738 #38C7B3
split-complementary
#6C38C7 #C7B338 #4CC738
monochromatic
#381D67 #522B97 #6C38C7 #8F68D4 #B398E2

Accessibility & contrast

On white

6.94
#6C38C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#6C38C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C38C7
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C38C7#FFFFFF#000000##FFFFFF
##6C38C71.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCB
Deuteranopia (green-blind)
#0057C4
Tritanopia (blue-blind)
#515D7C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6c38c7;
/* rgb */ color: rgb(108, 56, 199);
/* oklch */ color: oklch(49.0% 0.207 294.0);
Tailwind
colors: {
  custom: {
    50: '#9e73d9',
    500: '#6c38c7',
    950: '#000000',
  },
}
SCSS
$custom: #6c38c7;
$custom-light: #9e73d9;
$custom-dark: #000000;
JSON
{
  "hex": "#6c38c7",
  "rgb": {
    "r": 108,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 261.818,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.49009,
    "c": 0.20712,
    "h": 294
  },
  "luminance": 0.1014
}

Semantic roles & 50–950 ramp

primary
#6C38C7
secondary
#B6CD8D
accent
#DF48A8
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6C38C7

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

Preview Lab → · Contrast checker → · Palette generator →

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