#7F186F#7F186F

#7F186F is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.165 H 335.5°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#7F186F
RGBrgb(127, 24, 111)
HSLhsl(309, 68%, 30%)
HSVhsv(309, 81%, 50%)
CMYKcmyk(0%, 81.1%, 12.6%, 50.2%)
CIE-LABlab(30.19, 51.37, -25.07)
CIE-LCHlch(30.19, 57.16, 333.99°)
OKLaboklab(42.02% 0.1504 -0.0685)
OKLCHoklch(42.02% 0.165 335.5)
XYZxyz(11.9485, 6.3141, 15.6253)
Luminance0.0631 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F186F #187F28
analogous
#5B187F #7F186F #7F183C
triadic
#7F186F #6F7F18 #186F7F
tetradic
#7F186F #7F5B18 #187F28 #183C7F
square
#7F186F #7F5B18 #187F28 #183C7F
split-complementary
#7F186F #3C7F18 #187F5B
monochromatic
#1A0516 #4C0E42 #7F186F #B2229C #D938C0

Accessibility & contrast

On white

9.28
#7F186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7F186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F186F
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F186F#FFFFFF#000000##FFFFFF
##7F186F1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183D71
Deuteranopia (green-blind)
#3F4C6D
Tritanopia (blue-blind)
#862143
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f186f;
/* rgb */ color: rgb(127, 24, 111);
/* oklch */ color: oklch(42.0% 0.165 335.5);
Tailwind
colors: {
  custom: {
    50: '#a86298',
    500: '#7f186f',
    950: '#000000',
  },
}
SCSS
$custom: #7f186f;
$custom-light: #a86298;
$custom-dark: #000000;
JSON
{
  "hex": "#7f186f",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 309.32,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42019,
    "c": 0.1653,
    "h": 335.5
  },
  "luminance": 0.06313
}

Semantic roles & 50–950 ramp

primary
#7F186F
secondary
#3FB351
accent
#EB583D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F186F

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

Preview Lab → · Contrast checker → · Palette generator →

#7F186F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva