#6F158E#6F158E

#6F158E is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.3% C 0.186 H 315.0°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#6F158E
RGBrgb(111, 21, 142)
HSLhsl(285, 74%, 32%)
HSVhsv(285, 85%, 56%)
CMYKcmyk(21.8%, 85.2%, 0%, 44.3%)
CIE-LABlab(29.08, 54.45, -46.52)
CIE-LCHlch(29.08, 71.62, 319.49°)
OKLaboklab(41.33% 0.1314 -0.1315)
OKLCHoklch(41.33% 0.186 315)
XYZxyz(11.7054, 5.8693, 26.1022)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F158E #348E15
analogous
#33158E #6F158E #8E1571
triadic
#6F158E #8E6F15 #158E6F
tetradic
#6F158E #8E3315 #348E15 #15718E
square
#6F158E #8E3315 #348E15 #15718E
split-complementary
#6F158E #718E15 #158E33
monochromatic
#1C0523 #450D59 #6F158E #991DC3 #B73BE2

Accessibility & contrast

On white

9.66
#6F158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#6F158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F158E
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F158E#FFFFFF#000000##FFFFFF
##6F158E1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#0A478C
Tritanopia (blue-blind)
#6C3454
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #6f158e;
/* rgb */ color: rgb(111, 21, 142);
/* oklch */ color: oklch(41.3% 0.186 315.0);
Tailwind
colors: {
  custom: {
    50: '#9d60b0',
    500: '#6f158e',
    950: '#000000',
  },
}
SCSS
$custom: #6f158e;
$custom-light: #9d60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6f158e",
  "rgb": {
    "r": 111,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 284.628,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.41332,
    "c": 0.18591,
    "h": 315
  },
  "luminance": 0.05869
}

Semantic roles & 50–950 ramp

primary
#6F158E
secondary
#5FC23D
accent
#F13767
background
#FAF6FA
surface
#F3EBF5
border
#CDC6CF
text
#0F0510
muted
#7F7A7F

Preview Lab

Preview with #6F158E

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

Preview Lab → · Contrast checker → · Palette generator →

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