#7F2387#7F2387

#7F2387 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.4% C 0.172 H 324.5°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#7F2387
RGBrgb(127, 35, 135)
HSLhsl(295, 59%, 33%)
HSVhsv(295, 74%, 53%)
CMYKcmyk(5.9%, 74.1%, 0%, 47.1%)
CIE-LABlab(32.84, 51.80, -35.99)
CIE-LCHlch(32.84, 63.08, 325.21°)
OKLaboklab(44.36% 0.1404 -0.1002)
OKLCHoklch(44.36% 0.172 324.5)
XYZxyz(13.7262, 7.4642, 23.6347)
Luminance0.0746 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2387 #2B8723
analogous
#4D2387 #7F2387 #87235D
triadic
#7F2387 #877F23 #23877F
tetradic
#7F2387 #874D23 #2B8723 #235D87
square
#7F2387 #874D23 #2B8723 #235D87
split-complementary
#7F2387 #5D8723 #23874D
monochromatic
#240A26 #511656 #7F2387 #AD30B8 #C852D2

Accessibility & contrast

On white

8.42
#7F2387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7F2387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2387
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2387#FFFFFF#000000##FFFFFF
##7F23871.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01468A
Deuteranopia (green-blind)
#365185
Tritanopia (blue-blind)
#823453
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f2387;
/* rgb */ color: rgb(127, 35, 135);
/* oklch */ color: oklch(44.4% 0.172 324.5);
Tailwind
colors: {
  custom: {
    50: '#a768aa',
    500: '#7f2387',
    950: '#000000',
  },
}
SCSS
$custom: #7f2387;
$custom-light: #a768aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2387",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 295.2,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44363,
    "c": 0.17249,
    "h": 324.5
  },
  "luminance": 0.07463
}

Semantic roles & 50–950 ramp

primary
#7F2387
secondary
#58B650
accent
#E24652
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2387

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

Preview Lab → · Contrast checker → · Palette generator →

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