#7F187E#7F187E

#7F187E is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.9% C 0.177 H 328.6°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#7F187E
RGBrgb(127, 24, 126)
HSLhsl(301, 68%, 30%)
HSVhsv(301, 81%, 50%)
CMYKcmyk(0%, 81.1%, 0.8%, 50.2%)
CIE-LABlab(31.05, 53.79, -33.22)
CIE-LCHlch(31.05, 63.22, 328.30°)
OKLaboklab(42.91% 0.1507 -0.0921)
OKLCHoklch(42.91% 0.177 328.6)
XYZxyz(12.8448, 6.6726, 20.3460)
Luminance0.0667 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F187E #187F19
analogous
#4D187F #7F187E #7F184A
triadic
#7F187E #7E7F18 #187E7F
tetradic
#7F187E #7F4D18 #187F19 #184A7F
square
#7F187E #7F4D18 #187F19 #184A7F
split-complementary
#7F187E #4A7F18 #187F4D
monochromatic
#1A051A #4C0E4B #7F187E #B222B1 #D938D8

Accessibility & contrast

On white

9.00
#7F187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7F187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F187E
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F187E#FFFFFF#000000##FFFFFF
##7F187E1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004181
Deuteranopia (green-blind)
#374E7C
Tritanopia (blue-blind)
#83294B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f187e;
/* rgb */ color: rgb(127, 24, 126);
/* oklch */ color: oklch(42.9% 0.177 328.6);
Tailwind
colors: {
  custom: {
    50: '#a863a4',
    500: '#7f187e',
    950: '#000000',
  },
}
SCSS
$custom: #7f187e;
$custom-light: #a863a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f187e",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 300.583,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42909,
    "c": 0.17659,
    "h": 328.6
  },
  "luminance": 0.06672
}

Semantic roles & 50–950 ramp

primary
#7F187E
secondary
#3FB341
accent
#EB3E3D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F187E

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

Preview Lab → · Contrast checker → · Palette generator →

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