#6F1788#6F1788

#6F1788 is a dark, vivid purple. Relative luminance 0.058; OKLCH L 41.0% C 0.179 H 317.1°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#6F1788
RGBrgb(111, 23, 136)
HSLhsl(287, 71%, 31%)
HSVhsv(287, 83%, 53%)
CMYKcmyk(18.4%, 83.1%, 0%, 46.7%)
CIE-LABlab(28.83, 52.68, -43.20)
CIE-LCHlch(28.83, 68.13, 320.65°)
OKLaboklab(41.01% 0.1312 -0.1218)
OKLCHoklch(41.01% 0.179 317.1)
XYZxyz(11.3052, 5.7704, 23.8061)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F1788 #308817
analogous
#361788 #6F1788 #881768
triadic
#6F1788 #886F17 #17886F
tetradic
#6F1788 #883617 #308817 #176888
square
#6F1788 #883617 #308817 #176888
split-complementary
#6F1788 #688817 #178836
monochromatic
#1A051F #440E54 #6F1788 #9A20BC #BA3BDE

Accessibility & contrast

On white

9.75
#6F1788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#6F1788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F1788
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F1788#FFFFFF#000000##FFFFFF
##6F17881.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8B
Deuteranopia (green-blind)
#194686
Tritanopia (blue-blind)
#6E3251
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6f1788;
/* rgb */ color: rgb(111, 23, 136);
/* oklch */ color: oklch(41.0% 0.179 317.1);
Tailwind
colors: {
  custom: {
    50: '#9c61ab',
    500: '#6f1788',
    950: '#000000',
  },
}
SCSS
$custom: #6f1788;
$custom-light: #9c61ab;
$custom-dark: #000000;
JSON
{
  "hex": "#6f1788",
  "rgb": {
    "r": 111,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 286.726,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.41011,
    "c": 0.17902,
    "h": 317.1
  },
  "luminance": 0.0577
}

Semantic roles & 50–950 ramp

primary
#6F1788
secondary
#5BBC3F
accent
#EE3A62
background
#FAF6FA
surface
#F3EBF4
border
#CDC6CE
text
#0F0510
muted
#7F7A7F

Preview Lab

Preview with #6F1788

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

Preview Lab → · Contrast checker → · Palette generator →

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