#6F1796#6F1796

#6F1796 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 42.1% C 0.191 H 312.0°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#6F1796
RGBrgb(111, 23, 150)
HSLhsl(282, 73%, 34%)
HSVhsv(282, 85%, 59%)
CMYKcmyk(26%, 84.7%, 0%, 41.2%)
CIE-LABlab(29.90, 55.52, -50.12)
CIE-LCHlch(29.90, 74.80, 317.92°)
OKLaboklab(42.1% 0.1281 -0.1421)
OKLCHoklch(42.1% 0.191 312)
XYZxyz(12.3659, 6.1947, 29.3925)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F1796 #3E9617
analogous
#301796 #6F1796 #96177E
triadic
#6F1796 #966F17 #17966F
tetradic
#6F1796 #963017 #3E9617 #177E96
square
#6F1796 #963017 #3E9617 #177E96
split-complementary
#6F1796 #7E9617 #179630
monochromatic
#20072C #480F61 #6F1796 #961FCB #B245E2

Accessibility & contrast

On white

9.38
#6F1796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#6F1796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F1796
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F1796#FFFFFF#000000##FFFFFF
##6F17961.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#004894
Tritanopia (blue-blind)
#6A3959
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6f1796;
/* rgb */ color: rgb(111, 23, 150);
/* oklch */ color: oklch(42.1% 0.191 312.0);
Tailwind
colors: {
  custom: {
    50: '#9d62b6',
    500: '#6f1796',
    950: '#000000',
  },
}
SCSS
$custom: #6f1796;
$custom-light: #9d62b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6f1796",
  "rgb": {
    "r": 111,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 281.575,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.42098,
    "c": 0.19131,
    "h": 312
  },
  "luminance": 0.06194
}

Semantic roles & 50–950 ramp

primary
#6F1796
secondary
#6CC345
accent
#F03870
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0611
muted
#7F7A80

Preview Lab

Preview with #6F1796

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

Preview Lab → · Contrast checker → · Palette generator →

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