#7F187C#7F187C

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

Color values

HEX#7F187C
RGBrgb(127, 24, 124)
HSLhsl(302, 68%, 30%)
HSVhsv(302, 81%, 50%)
CMYKcmyk(0%, 81.1%, 2.4%, 50.2%)
CIE-LABlab(30.93, 53.45, -32.15)
CIE-LCHlch(30.93, 62.38, 328.97°)
OKLaboklab(42.79% 0.1507 -0.089)
OKLCHoklch(42.79% 0.175 329.4)
XYZxyz(12.7170, 6.6215, 19.6732)
Luminance0.0662 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F187C #187F1B
analogous
#4F187F #7F187C #7F1848
triadic
#7F187C #7C7F18 #187C7F
tetradic
#7F187C #7F4F18 #187F1B #18487F
square
#7F187C #7F4F18 #187F1B #18487F
split-complementary
#7F187C #487F18 #187F4F
monochromatic
#1A0519 #4C0E4A #7F187C #B222AE #D938D5

Accessibility & contrast

On white

9.04
#7F187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7F187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F187C
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F187C#FFFFFF#000000##FFFFFF
##7F187C1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02407F
Deuteranopia (green-blind)
#384D7A
Tritanopia (blue-blind)
#84284A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f187c;
/* rgb */ color: rgb(127, 24, 124);
/* oklch */ color: oklch(42.8% 0.175 329.4);
Tailwind
colors: {
  custom: {
    50: '#a863a2',
    500: '#7f187c',
    950: '#000000',
  },
}
SCSS
$custom: #7f187c;
$custom-light: #a863a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f187c",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 301.748,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42785,
    "c": 0.17504,
    "h": 329.4
  },
  "luminance": 0.06621
}

Semantic roles & 50–950 ramp

primary
#7F187C
secondary
#3FB343
accent
#EB423D
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F187C

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

Preview Lab → · Contrast checker → · Palette generator →

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