#6B198B#6B198B

#6B198B is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.8% C 0.178 H 313.9°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#6B198B
RGBrgb(107, 25, 139)
HSLhsl(283, 70%, 32%)
HSVhsv(283, 82%, 55%)
CMYKcmyk(23%, 82%, 0%, 45.5%)
CIE-LABlab(28.60, 51.92, -45.46)
CIE-LCHlch(28.60, 69.01, 318.80°)
OKLaboklab(40.8% 0.1238 -0.1286)
OKLCHoklch(40.8% 0.178 313.9)
XYZxyz(11.0704, 5.6855, 24.9354)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B198B #398B19
analogous
#32198B #6B198B #8B1972
triadic
#6B198B #8B6B19 #198B6B
tetradic
#6B198B #8B3219 #398B19 #19728B
square
#6B198B #8B3219 #398B19 #19728B
split-complementary
#6B198B #728B19 #198B32
monochromatic
#1B0623 #431057 #6B198B #9322BF #B141DD

Accessibility & contrast

On white

9.83
#6B198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B198B
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B198B#FFFFFF#000000##FFFFFF
##6B198B1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#0C4589
Tritanopia (blue-blind)
#683553
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6b198b;
/* rgb */ color: rgb(107, 25, 139);
/* oklch */ color: oklch(40.8% 0.178 313.9);
Tailwind
colors: {
  custom: {
    50: '#9a61ae',
    500: '#6b198b',
    950: '#000000',
  },
}
SCSS
$custom: #6b198b;
$custom-light: #9a61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6b198b",
  "rgb": {
    "r": 107,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 283.158,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40796,
    "c": 0.17846,
    "h": 313.9
  },
  "luminance": 0.05685
}

Semantic roles & 50–950 ramp

primary
#6B198B
secondary
#65BE42
accent
#EC3B6D
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6B198B

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

Preview Lab → · Contrast checker → · Palette generator →

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