#7F1A87#7F1A87

#7F1A87 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.6% C 0.182 H 324.7°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#7F1A87
RGBrgb(127, 26, 135)
HSLhsl(296, 68%, 32%)
HSVhsv(296, 81%, 53%)
CMYKcmyk(5.9%, 80.7%, 0%, 47.1%)
CIE-LABlab(31.81, 54.77, -37.64)
CIE-LCHlch(31.81, 66.45, 325.50°)
OKLaboklab(43.63% 0.1485 -0.105)
OKLCHoklch(43.63% 0.182 324.7)
XYZxyz(13.4946, 7.0010, 23.5575)
Luminance0.0700 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1A87 #22871A
analogous
#491A87 #7F1A87 #871A59
triadic
#7F1A87 #877F1A #1A877F
tetradic
#7F1A87 #87491A #22871A #1A5987
square
#7F1A87 #87491A #22871A #1A5987
split-complementary
#7F1A87 #59871A #1A8749
monochromatic
#1E0620 #4F1054 #7F1A87 #AF24BA #CF41DA

Accessibility & contrast

On white

8.75
#7F1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7F1A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1A87
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1A87#FFFFFF#000000##FFFFFF
##7F1A871.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#324F85
Tritanopia (blue-blind)
#822F51
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f1a87;
/* rgb */ color: rgb(127, 26, 135);
/* oklch */ color: oklch(43.6% 0.182 324.7);
Tailwind
colors: {
  custom: {
    50: '#a864aa',
    500: '#7f1a87',
    950: '#000000',
  },
}
SCSS
$custom: #7f1a87;
$custom-light: #a864aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1a87",
  "rgb": {
    "r": 127,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 295.596,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43629,
    "c": 0.18189,
    "h": 324.7
  },
  "luminance": 0.07
}

Semantic roles & 50–950 ramp

primary
#7F1A87
secondary
#4BBA42
accent
#EB3D4A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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