#7F178E#7F178E

#7F178E is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.9% C 0.190 H 322.1°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#7F178E
RGBrgb(127, 23, 142)
HSLhsl(292, 72%, 32%)
HSVhsv(292, 84%, 56%)
CMYKcmyk(10.6%, 83.8%, 0%, 44.3%)
CIE-LABlab(31.99, 56.85, -41.69)
CIE-LCHlch(31.99, 70.50, 323.75°)
OKLaboklab(43.9% 0.15 -0.1168)
OKLCHoklch(43.9% 0.19 322.1)
XYZxyz(13.9408, 7.0786, 26.2180)
Luminance0.0708 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F178E #268E17
analogous
#44178E #7F178E #8E1762
triadic
#7F178E #8E7F17 #178E7F
tetradic
#7F178E #8E4417 #268E17 #17628E
square
#7F178E #8E4417 #268E17 #17628E
split-complementary
#7F178E #628E17 #178E44
monochromatic
#210625 #500E59 #7F178E #AE20C3 #CC3FE0

Accessibility & contrast

On white

8.69
#7F178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7F178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F178E
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F178E#FFFFFF#000000##FFFFFF
##7F178E1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#2B4F8B
Tritanopia (blue-blind)
#803154
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f178e;
/* rgb */ color: rgb(127, 23, 142);
/* oklch */ color: oklch(43.9% 0.190 322.1);
Tailwind
colors: {
  custom: {
    50: '#a864b0',
    500: '#7f178e',
    950: '#000000',
  },
}
SCSS
$custom: #7f178e;
$custom-light: #a864b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f178e",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 292.437,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43901,
    "c": 0.19016,
    "h": 322.1
  },
  "luminance": 0.07078
}

Semantic roles & 50–950 ramp

primary
#7F178E
secondary
#51C040
accent
#EF3950
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F178E

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

Preview Lab → · Contrast checker → · Palette generator →

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