#6B18A0#6B18A0

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

Color values

HEX#6B18A0
RGBrgb(107, 24, 160)
HSLhsl(277, 74%, 36%)
HSVhsv(277, 85%, 63%)
CMYKcmyk(33.1%, 85%, 0%, 37.3%)
CIE-LABlab(30.20, 56.71, -55.77)
CIE-LCHlch(30.20, 79.53, 315.48°)
OKLaboklab(42.44% 0.119 -0.1588)
OKLCHoklch(42.44% 0.198 306.8)
XYZxyz(12.7338, 6.3173, 33.7994)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B18A0 #4DA018
analogous
#2718A0 #6B18A0 #A01891
triadic
#6B18A0 #A06B18 #18A06B
tetradic
#6B18A0 #A02718 #4DA018 #1891A0
square
#6B18A0 #A02718 #4DA018 #1891A0
split-complementary
#6B18A0 #91A018 #18A027
monochromatic
#240836 #47106B #6B18A0 #8F20D5 #AA4EE4

Accessibility & contrast

On white

9.28
#6B18A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B18A0
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B18A0#FFFFFF#000000##FFFFFF
##6B18A01.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#00489D
Tritanopia (blue-blind)
#623E5F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6b18a0;
/* rgb */ color: rgb(107, 24, 160);
/* oklch */ color: oklch(42.4% 0.198 306.8);
Tailwind
colors: {
  custom: {
    50: '#9b62bd',
    500: '#6b18a0',
    950: '#000000',
  },
}
SCSS
$custom: #6b18a0;
$custom-light: #9b62bd;
$custom-dark: #000000;
JSON
{
  "hex": "#6b18a0",
  "rgb": {
    "r": 107,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 276.618,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42437,
    "c": 0.19845,
    "h": 306.8
  },
  "luminance": 0.06317
}

Semantic roles & 50–950 ramp

primary
#6B18A0
secondary
#7DC64D
accent
#F1377F
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6B18A0

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

Preview Lab → · Contrast checker → · Palette generator →

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