#6B198C#6B198C

#6B198C is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.9% C 0.179 H 313.5°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#6B198C
RGBrgb(107, 25, 140)
HSLhsl(283, 70%, 32%)
HSVhsv(283, 82%, 55%)
CMYKcmyk(23.6%, 82.1%, 0%, 45.1%)
CIE-LABlab(28.68, 52.13, -45.95)
CIE-LCHlch(28.68, 69.49, 318.60°)
OKLaboklab(40.87% 0.1236 -0.13)
OKLCHoklch(40.87% 0.179 313.5)
XYZxyz(11.1438, 5.7149, 25.3219)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B198C #3A8C19
analogous
#32198C #6B198C #8C1973
triadic
#6B198C #8C6B19 #198C6B
tetradic
#6B198C #8C3219 #3A8C19 #19738C
square
#6B198C #8C3219 #3A8C19 #19738C
split-complementary
#6B198C #738C19 #198C32
monochromatic
#1C0624 #431058 #6B198C #9322C0 #B142DD

Accessibility & contrast

On white

9.80
#6B198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#6B198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B198C
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B198C#FFFFFF#000000##FFFFFF
##6B198C1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#09458A
Tritanopia (blue-blind)
#673553
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6b198c;
/* rgb */ color: rgb(107, 25, 140);
/* oklch */ color: oklch(40.9% 0.179 313.5);
Tailwind
colors: {
  custom: {
    50: '#9a61ae',
    500: '#6b198c',
    950: '#000000',
  },
}
SCSS
$custom: #6b198c;
$custom-light: #9a61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6b198c",
  "rgb": {
    "r": 107,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 282.783,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40874,
    "c": 0.17937,
    "h": 313.5
  },
  "luminance": 0.05715
}

Semantic roles & 50–950 ramp

primary
#6B198C
secondary
#66BE43
accent
#ED3B6E
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6B198C

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

Preview Lab → · Contrast checker → · Palette generator →

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