#6C38CD#6C38CD

#6C38CD is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.5% C 0.214 H 292.8°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#6C38CD
RGBrgb(108, 56, 205)
HSLhsl(261, 60%, 51%)
HSVhsv(261, 73%, 80%)
CMYKcmyk(47.3%, 72.7%, 0%, 19.6%)
CIE-LABlab(38.59, 55.05, -68.72)
CIE-LCHlch(38.59, 88.05, 308.70°)
OKLaboklab(49.52% 0.0829 -0.1971)
OKLCHoklch(49.52% 0.214 292.8)
XYZxyz(18.6149, 10.4236, 58.7769)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C38CD #99CD38
analogous
#384ECD #6C38CD #B638CD
triadic
#6C38CD #CD6C38 #38CD6C
tetradic
#6C38CD #CD384E #99CD38 #38CDB6
square
#6C38CD #CD384E #99CD38 #38CDB6
split-complementary
#6C38CD #CDB638 #4ECD38
monochromatic
#391C6F #5228A0 #6C38CD #9069D9 #B49AE6

Accessibility & contrast

On white

6.81
#6C38CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#6C38CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C38CD
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C38CD#FFFFFF#000000##FFFFFF
##6C38CD1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD1
Deuteranopia (green-blind)
#0058CA
Tritanopia (blue-blind)
#4E5F7F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6c38cd;
/* rgb */ color: rgb(108, 56, 205);
/* oklch */ color: oklch(49.5% 0.214 292.8);
Tailwind
colors: {
  custom: {
    50: '#9f73dd',
    500: '#6c38cd',
    950: '#000000',
  },
}
SCSS
$custom: #6c38cd;
$custom-light: #9f73dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6c38cd",
  "rgb": {
    "r": 108,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 260.94,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.49518,
    "c": 0.21379,
    "h": 292.8
  },
  "luminance": 0.10424
}

Semantic roles & 50–950 ramp

primary
#6C38CD
secondary
#BAD18F
accent
#E345AC
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #6C38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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