#6C18A0#6C18A0

#6C18A0 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.6% C 0.199 H 307.3°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#6C18A0
RGBrgb(108, 24, 160)
HSLhsl(277, 74%, 36%)
HSVhsv(277, 85%, 63%)
CMYKcmyk(32.5%, 85%, 0%, 37.3%)
CIE-LABlab(30.35, 56.87, -55.51)
CIE-LCHlch(30.35, 79.47, 315.69°)
OKLaboklab(42.57% 0.1204 -0.1581)
OKLCHoklch(42.57% 0.199 307.3)
XYZxyz(12.8548, 6.3796, 33.8051)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C18A0 #4CA018
analogous
#2818A0 #6C18A0 #A01890
triadic
#6C18A0 #A06C18 #18A06C
tetradic
#6C18A0 #A02818 #4CA018 #1890A0
square
#6C18A0 #A02818 #4CA018 #1890A0
split-complementary
#6C18A0 #90A018 #18A028
monochromatic
#240836 #48106B #6C18A0 #9020D5 #AB4EE4

Accessibility & contrast

On white

9.23
#6C18A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#6C18A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C18A0
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C18A0#FFFFFF#000000##FFFFFF
##6C18A01.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#00489D
Tritanopia (blue-blind)
#633E5F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6c18a0;
/* rgb */ color: rgb(108, 24, 160);
/* oklch */ color: oklch(42.6% 0.199 307.3);
Tailwind
colors: {
  custom: {
    50: '#9c62bd',
    500: '#6c18a0',
    950: '#000000',
  },
}
SCSS
$custom: #6c18a0;
$custom-light: #9c62bd;
$custom-dark: #000000;
JSON
{
  "hex": "#6c18a0",
  "rgb": {
    "r": 108,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 277.059,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42573,
    "c": 0.19869,
    "h": 307.3
  },
  "luminance": 0.06379
}

Semantic roles & 50–950 ramp

primary
#6C18A0
secondary
#7CC64D
accent
#F1377E
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6C18A0

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

Preview Lab → · Contrast checker → · Palette generator →

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