#6B18B3#6B18B3

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

Color values

HEX#6B18B3
RGBrgb(107, 24, 179)
HSLhsl(272, 76%, 40%)
HSVhsv(272, 87%, 70%)
CMYKcmyk(40.2%, 86.6%, 0%, 29.8%)
CIE-LABlab(31.88, 60.92, -64.44)
CIE-LCHlch(31.88, 88.68, 313.39°)
OKLaboklab(44.11% 0.1125 -0.1843)
OKLCHoklch(44.11% 0.216 301.4)
XYZxyz(14.5247, 7.0336, 43.2315)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B18B3 #60B318
analogous
#1D18B3 #6B18B3 #B318AE
triadic
#6B18B3 #B36B18 #18B36B
tetradic
#6B18B3 #B31D18 #60B318 #18AEB3
square
#6B18B3 #B31D18 #60B318 #18AEB3
split-complementary
#6B18B3 #AEB318 #18B31D
monochromatic
#2A0A47 #4B117D #6B18B3 #8B26E2 #A85CE9

Accessibility & contrast

On white

8.73
#6B18B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#6B18B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B18B3
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B18B3#FFFFFF#000000##FFFFFF
##6B18B31.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB7
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#5A476A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6b18b3;
/* rgb */ color: rgb(107, 24, 179);
/* oklch */ color: oklch(44.1% 0.216 301.4);
Tailwind
colors: {
  custom: {
    50: '#9d63cb',
    500: '#6b18b3',
    950: '#000000',
  },
}
SCSS
$custom: #6b18b3;
$custom-light: #9d63cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6b18b3",
  "rgb": {
    "r": 107,
    "g": 24,
    "b": 179
  },
  "hsl": {
    "h": 272.129,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.44114,
    "c": 0.21593,
    "h": 301.4
  },
  "luminance": 0.07034
}

Semantic roles & 50–950 ramp

primary
#6B18B3
secondary
#8FCD5A
accent
#F3358D
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6B18B3

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

Preview Lab → · Contrast checker → · Palette generator →

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