#6C38C5#6C38C5

#6C38C5 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.8% C 0.205 H 294.4°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#6C38C5
RGBrgb(108, 56, 197)
HSLhsl(262, 56%, 50%)
HSVhsv(262, 72%, 77%)
CMYKcmyk(45.2%, 71.6%, 0%, 22.7%)
CIE-LABlab(37.93, 52.94, -65.16)
CIE-LCHlch(37.93, 83.95, 309.10°)
OKLaboklab(48.84% 0.0846 -0.1866)
OKLCHoklch(48.84% 0.205 294.4)
XYZxyz(17.6738, 10.0472, 53.8206)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C38C5 #91C538
analogous
#384AC5 #6C38C5 #B338C5
triadic
#6C38C5 #C56C38 #38C56C
tetradic
#6C38C5 #C5384A #91C538 #38C5B3
square
#6C38C5 #C5384A #91C538 #38C5B3
split-complementary
#6C38C5 #C5B338 #4AC538
monochromatic
#381D66 #522A95 #6C38C5 #8F67D4 #B296E1

Accessibility & contrast

On white

6.98
#6C38C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#6C38C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C38C5
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C38C5#FFFFFF#000000##FFFFFF
##6C38C51.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC9
Deuteranopia (green-blind)
#0057C2
Tritanopia (blue-blind)
#525C7B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6c38c5;
/* rgb */ color: rgb(108, 56, 197);
/* oklch */ color: oklch(48.8% 0.205 294.4);
Tailwind
colors: {
  custom: {
    50: '#9e73d8',
    500: '#6c38c5',
    950: '#000000',
  },
}
SCSS
$custom: #6c38c5;
$custom-light: #9e73d8;
$custom-dark: #000000;
JSON
{
  "hex": "#6c38c5",
  "rgb": {
    "r": 108,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 262.128,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.48841,
    "c": 0.20489,
    "h": 294.4
  },
  "luminance": 0.10048
}

Semantic roles & 50–950 ramp

primary
#6C38C5
secondary
#B5CD8C
accent
#DF49A8
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6C38C5

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

Preview Lab → · Contrast checker → · Palette generator →

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