#6B18A1#6B18A1

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

Color values

HEX#6B18A1
RGBrgb(107, 24, 161)
HSLhsl(276, 74%, 36%)
HSVhsv(276, 85%, 63%)
CMYKcmyk(33.5%, 85.1%, 0%, 36.9%)
CIE-LABlab(30.28, 56.93, -56.23)
CIE-LCHlch(30.28, 80.02, 315.35°)
OKLaboklab(42.52% 0.1187 -0.1602)
OKLCHoklch(42.52% 0.199 306.5)
XYZxyz(12.8216, 6.3524, 34.2620)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B18A1 #4EA118
analogous
#2618A1 #6B18A1 #A11893
triadic
#6B18A1 #A16B18 #18A16B
tetradic
#6B18A1 #A12618 #4EA118 #1893A1
square
#6B18A1 #A12618 #4EA118 #1893A1
split-complementary
#6B18A1 #93A118 #18A126
monochromatic
#240836 #48106C #6B18A1 #8E20D6 #AA4FE5

Accessibility & contrast

On white

9.25
#6B18A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#6B18A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B18A1
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B18A1#FFFFFF#000000##FFFFFF
##6B18A11.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b18a1;
/* rgb */ color: rgb(107, 24, 161);
/* oklch */ color: oklch(42.5% 0.199 306.5);
Tailwind
colors: {
  custom: {
    50: '#9b62be',
    500: '#6b18a1',
    950: '#000000',
  },
}
SCSS
$custom: #6b18a1;
$custom-light: #9b62be;
$custom-dark: #000000;
JSON
{
  "hex": "#6b18a1",
  "rgb": {
    "r": 107,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 276.35,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42523,
    "c": 0.19936,
    "h": 306.5
  },
  "luminance": 0.06352
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6B18A1

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

Preview Lab → · Contrast checker → · Palette generator →

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