#6D18B3#6D18B3

#6D18B3 is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.4% C 0.216 H 302.3°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#6D18B3
RGBrgb(109, 24, 179)
HSLhsl(273, 76%, 40%)
HSVhsv(273, 87%, 70%)
CMYKcmyk(39.1%, 86.6%, 0%, 29.8%)
CIE-LABlab(32.17, 61.19, -63.97)
CIE-LCHlch(32.17, 88.52, 313.73°)
OKLaboklab(44.37% 0.1155 -0.1828)
OKLCHoklch(44.37% 0.216 302.3)
XYZxyz(14.7680, 7.1591, 43.2429)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D18B3 #5EB318
analogous
#1F18B3 #6D18B3 #B318AC
triadic
#6D18B3 #B36D18 #18B36D
tetradic
#6D18B3 #B31F18 #5EB318 #18ACB3
square
#6D18B3 #B31F18 #5EB318 #18ACB3
split-complementary
#6D18B3 #ACB318 #18B31F
monochromatic
#2B0A47 #4C117D #6D18B3 #8D26E2 #AA5CE9

Accessibility & contrast

On white

8.64
#6D18B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#6D18B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D18B3
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D18B3#FFFFFF#000000##FFFFFF
##6D18B31.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB7
Deuteranopia (green-blind)
#004BB0
Tritanopia (blue-blind)
#5E476A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6d18b3;
/* rgb */ color: rgb(109, 24, 179);
/* oklch */ color: oklch(44.4% 0.216 302.3);
Tailwind
colors: {
  custom: {
    50: '#9e63cb',
    500: '#6d18b3',
    950: '#000000',
  },
}
SCSS
$custom: #6d18b3;
$custom-light: #9e63cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6d18b3",
  "rgb": {
    "r": 109,
    "g": 24,
    "b": 179
  },
  "hsl": {
    "h": 272.903,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.44368,
    "c": 0.21627,
    "h": 302.3
  },
  "luminance": 0.07159
}

Semantic roles & 50–950 ramp

primary
#6D18B3
secondary
#8ECD5A
accent
#F3358B
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6D18B3

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

Preview Lab → · Contrast checker → · Palette generator →

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