#6A18A1#6A18A1

#6A18A1 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.4% C 0.199 H 306.1°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#6A18A1
RGBrgb(106, 24, 161)
HSLhsl(276, 74%, 36%)
HSVhsv(276, 85%, 63%)
CMYKcmyk(34.2%, 85.1%, 0%, 36.9%)
CIE-LABlab(30.13, 56.78, -56.48)
CIE-LCHlch(30.13, 80.09, 315.15°)
OKLaboklab(42.39% 0.1172 -0.161)
OKLCHoklch(42.39% 0.199 306.1)
XYZxyz(12.7021, 6.2908, 34.2564)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A18A1 #4FA118
analogous
#2518A1 #6A18A1 #A11894
triadic
#6A18A1 #A16A18 #18A16A
tetradic
#6A18A1 #A12518 #4FA118 #1894A1
square
#6A18A1 #A12518 #4FA118 #1894A1
split-complementary
#6A18A1 #94A118 #18A125
monochromatic
#240836 #47106C #6A18A1 #8D20D6 #A84FE5

Accessibility & contrast

On white

9.30
#6A18A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#6A18A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A18A1
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A18A1#FFFFFF#000000##FFFFFF
##6A18A11.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A5
Deuteranopia (green-blind)
#00479E
Tritanopia (blue-blind)
#603F5F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6a18a1;
/* rgb */ color: rgb(106, 24, 161);
/* oklch */ color: oklch(42.4% 0.199 306.1);
Tailwind
colors: {
  custom: {
    50: '#9b62be',
    500: '#6a18a1',
    950: '#000000',
  },
}
SCSS
$custom: #6a18a1;
$custom-light: #9b62be;
$custom-dark: #000000;
JSON
{
  "hex": "#6a18a1",
  "rgb": {
    "r": 106,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 275.912,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42388,
    "c": 0.19913,
    "h": 306.1
  },
  "luminance": 0.06291
}

Semantic roles & 50–950 ramp

primary
#6A18A1
secondary
#7EC74E
accent
#F13782
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6A18A1

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

Preview Lab → · Contrast checker → · Palette generator →

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