#7F187F#7F187F

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

Color values

HEX#7F187F
RGBrgb(127, 24, 127)
HSLhsl(300, 68%, 30%)
HSVhsv(300, 81%, 50%)
CMYKcmyk(0%, 81.1%, 0%, 50.2%)
CIE-LABlab(31.11, 53.95, -33.75)
CIE-LCHlch(31.11, 63.64, 327.97°)
OKLaboklab(42.97% 0.1506 -0.0936)
OKLCHoklch(42.97% 0.177 328.1)
XYZxyz(12.9096, 6.6986, 20.6876)
Luminance0.0670 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F187F #187F18
analogous
#4C187F #7F187F #7F184C
triadic
#7F187F #7F7F18 #187F7F
tetradic
#7F187F #7F4C18 #187F18 #184C7F
square
#7F187F #7F4C18 #187F18 #184C7F
split-complementary
#7F187F #4C7F18 #187F4C
monochromatic
#1A051A #4C0E4C #7F187F #B222B2 #D938D9

Accessibility & contrast

On white

8.98
#7F187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7F187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F187F
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F187F#FFFFFF#000000##FFFFFF
##7F187F1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004182
Deuteranopia (green-blind)
#364E7D
Tritanopia (blue-blind)
#832A4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f187f;
/* rgb */ color: rgb(127, 24, 127);
/* oklch */ color: oklch(43.0% 0.177 328.1);
Tailwind
colors: {
  custom: {
    50: '#a863a4',
    500: '#7f187f',
    950: '#000000',
  },
}
SCSS
$custom: #7f187f;
$custom-light: #a863a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f187f",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 300,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42972,
    "c": 0.17737,
    "h": 328.1
  },
  "luminance": 0.06698
}

Semantic roles & 50–950 ramp

primary
#7F187F
secondary
#3FB33F
accent
#EB3D3D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F187F

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

Preview Lab → · Contrast checker → · Palette generator →

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