#7F187D#7F187D

#7F187D is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.8% C 0.176 H 329.0°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#7F187D
RGBrgb(127, 24, 125)
HSLhsl(301, 68%, 30%)
HSVhsv(301, 81%, 50%)
CMYKcmyk(0%, 81.1%, 1.6%, 50.2%)
CIE-LABlab(30.99, 53.62, -32.69)
CIE-LCHlch(30.99, 62.80, 328.63°)
OKLaboklab(42.85% 0.1507 -0.0905)
OKLCHoklch(42.85% 0.176 329)
XYZxyz(12.7806, 6.6470, 20.0079)
Luminance0.0665 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F187D #187F1A
analogous
#4E187F #7F187D #7F184A
triadic
#7F187D #7D7F18 #187D7F
tetradic
#7F187D #7F4E18 #187F1A #184A7F
square
#7F187D #7F4E18 #187F1A #184A7F
split-complementary
#7F187D #4A7F18 #187F4E
monochromatic
#1A0519 #4C0E4A #7F187D #B222B0 #D938D6

Accessibility & contrast

On white

9.02
#7F187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F187D
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F187D#FFFFFF#000000##FFFFFF
##7F187D1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#384E7B
Tritanopia (blue-blind)
#84294B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f187d;
/* rgb */ color: rgb(127, 24, 125);
/* oklch */ color: oklch(42.8% 0.176 329.0);
Tailwind
colors: {
  custom: {
    50: '#a863a3',
    500: '#7f187d',
    950: '#000000',
  },
}
SCSS
$custom: #7f187d;
$custom-light: #a863a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f187d",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 301.165,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42847,
    "c": 0.17581,
    "h": 329
  },
  "luminance": 0.06646
}

Semantic roles & 50–950 ramp

primary
#7F187D
secondary
#3FB342
accent
#EB403D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F187D

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

Preview Lab → · Contrast checker → · Palette generator →

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