#6C38B4#6C38B4

#6C38B4 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.5% C 0.186 H 298.2°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#6C38B4
RGBrgb(108, 56, 180)
HSLhsl(265, 53%, 46%)
HSVhsv(265, 69%, 71%)
CMYKcmyk(40%, 68.9%, 0%, 29.4%)
CIE-LABlab(36.58, 48.50, -57.36)
CIE-LCHlch(36.58, 75.12, 310.21°)
OKLaboklab(47.46% 0.0877 -0.1637)
OKLCHoklch(47.46% 0.186 298.2)
XYZxyz(15.8346, 9.3115, 44.1342)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C38B4 #80B438
analogous
#3842B4 #6C38B4 #AA38B4
triadic
#6C38B4 #B46C38 #38B46C
tetradic
#6C38B4 #B43842 #80B438 #38B4AA
square
#6C38B4 #B43842 #80B438 #38B4AA
split-complementary
#6C38B4 #B4AA38 #42B438
monochromatic
#341B57 #502985 #6C38B4 #8C5DCD #AD8BDB

Accessibility & contrast

On white

7.34
#6C38B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#6C38B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C38B4
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C38B4#FFFFFF#000000##FFFFFF
##6C38B41.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B8
Deuteranopia (green-blind)
#0055B1
Tritanopia (blue-blind)
#5B5672
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6c38b4;
/* rgb */ color: rgb(108, 56, 180);
/* oklch */ color: oklch(47.5% 0.186 298.2);
Tailwind
colors: {
  custom: {
    50: '#9c72cb',
    500: '#6c38b4',
    950: '#000000',
  },
}
SCSS
$custom: #6c38b4;
$custom-light: #9c72cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6c38b4",
  "rgb": {
    "r": 108,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 265.161,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.4746,
    "c": 0.18571,
    "h": 298.2
  },
  "luminance": 0.09312
}

Semantic roles & 50–950 ramp

primary
#6C38B4
secondary
#A9C582
accent
#DC4CA0
background
#FAF7FC
surface
#F3EDF9
border
#CDC8D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #6C38B4

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

Preview Lab → · Contrast checker → · Palette generator →

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