#6C18B3#6C18B3

#6C18B3 is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 44.2% C 0.216 H 301.8°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#6C18B3
RGBrgb(108, 24, 179)
HSLhsl(273, 76%, 40%)
HSVhsv(273, 87%, 70%)
CMYKcmyk(39.7%, 86.6%, 0%, 29.8%)
CIE-LABlab(32.02, 61.06, -64.20)
CIE-LCHlch(32.02, 88.60, 313.56°)
OKLaboklab(44.24% 0.114 -0.1836)
OKLCHoklch(44.24% 0.216 301.8)
XYZxyz(14.6457, 7.0960, 43.2372)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C18B3 #5FB318
analogous
#1E18B3 #6C18B3 #B318AD
triadic
#6C18B3 #B36C18 #18B36C
tetradic
#6C18B3 #B31E18 #5FB318 #18ADB3
square
#6C18B3 #B31E18 #5FB318 #18ADB3
split-complementary
#6C18B3 #ADB318 #18B31E
monochromatic
#2B0A47 #4B117D #6C18B3 #8C26E2 #A95CE9

Accessibility & contrast

On white

8.68
#6C18B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#6C18B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C18B3
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C18B3#FFFFFF#000000##FFFFFF
##6C18B31.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB7
Deuteranopia (green-blind)
#004BB0
Tritanopia (blue-blind)
#5C476A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6c18b3;
/* rgb */ color: rgb(108, 24, 179);
/* oklch */ color: oklch(44.2% 0.216 301.8);
Tailwind
colors: {
  custom: {
    50: '#9e63cb',
    500: '#6c18b3',
    950: '#000000',
  },
}
SCSS
$custom: #6c18b3;
$custom-light: #9e63cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6c18b3",
  "rgb": {
    "r": 108,
    "g": 24,
    "b": 179
  },
  "hsl": {
    "h": 272.516,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.44241,
    "c": 0.2161,
    "h": 301.8
  },
  "luminance": 0.07096
}

Semantic roles & 50–950 ramp

primary
#6C18B3
secondary
#8FCD5A
accent
#F3358C
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6C18B3

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

Preview Lab → · Contrast checker → · Palette generator →

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