#6A18B4#6A18B4

#6A18B4 is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 44.1% C 0.217 H 300.7°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#6A18B4
RGBrgb(106, 24, 180)
HSLhsl(272, 76%, 40%)
HSVhsv(272, 87%, 71%)
CMYKcmyk(41.1%, 86.7%, 0%, 29.4%)
CIE-LABlab(31.84, 61.02, -65.12)
CIE-LCHlch(31.84, 89.24, 313.14°)
OKLaboklab(44.08% 0.1107 -0.1863)
OKLCHoklch(44.08% 0.217 300.7)
XYZxyz(14.5066, 7.0126, 43.7605)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A18B4 #62B418
analogous
#1C18B4 #6A18B4 #B418B0
triadic
#6A18B4 #B46A18 #18B46A
tetradic
#6A18B4 #B41C18 #62B418 #18B0B4
square
#6A18B4 #B41C18 #62B418 #18B0B4
split-complementary
#6A18B4 #B0B418 #18B41C
monochromatic
#2A0A48 #4A117E #6A18B4 #8927E2 #A75DE9

Accessibility & contrast

On white

8.74
#6A18B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#6A18B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A18B4
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A18B4#FFFFFF#000000##FFFFFF
##6A18B41.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB8
Deuteranopia (green-blind)
#004AB1
Tritanopia (blue-blind)
#58486B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6a18b4;
/* rgb */ color: rgb(106, 24, 180);
/* oklch */ color: oklch(44.1% 0.217 300.7);
Tailwind
colors: {
  custom: {
    50: '#9c63cc',
    500: '#6a18b4',
    950: '#000000',
  },
}
SCSS
$custom: #6a18b4;
$custom-light: #9c63cc;
$custom-dark: #000000;
JSON
{
  "hex": "#6a18b4",
  "rgb": {
    "r": 106,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 271.538,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.4408,
    "c": 0.2167,
    "h": 300.7
  },
  "luminance": 0.07013
}

Semantic roles & 50–950 ramp

primary
#6A18B4
secondary
#91CD5B
accent
#F3358F
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6A18B4

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

Preview Lab → · Contrast checker → · Palette generator →

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