#7F1D9A#7F1D9A

#7F1D9A is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.2% C 0.195 H 317.5°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#7F1D9A
RGBrgb(127, 29, 154)
HSLhsl(287, 68%, 36%)
HSVhsv(287, 81%, 60%)
CMYKcmyk(17.5%, 81.2%, 0%, 39.6%)
CIE-LABlab(33.40, 57.40, -46.77)
CIE-LCHlch(33.40, 74.04, 320.83°)
OKLaboklab(45.16% 0.1437 -0.1317)
OKLCHoklch(45.16% 0.195 317.5)
XYZxyz(15.0236, 7.7245, 31.2652)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1D9A #389A1D
analogous
#401D9A #7F1D9A #9A1D76
triadic
#7F1D9A #9A7F1D #1D9A7F
tetradic
#7F1D9A #9A401D #389A1D #1D769A
square
#7F1D9A #9A401D #389A1D #1D769A
split-complementary
#7F1D9A #769A1D #1D9A40
monochromatic
#2A0A33 #551366 #7F1D9A #A927CE #C053DF

Accessibility & contrast

On white

8.25
#7F1D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7F1D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1D9A
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1D9A#FFFFFF#000000##FFFFFF
##7F1D9A1.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499D
Deuteranopia (green-blind)
#215197
Tritanopia (blue-blind)
#7E3A5C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f1d9a;
/* rgb */ color: rgb(127, 29, 154);
/* oklch */ color: oklch(45.2% 0.195 317.5);
Tailwind
colors: {
  custom: {
    50: '#a866b8',
    500: '#7f1d9a',
    950: '#000000',
  },
}
SCSS
$custom: #7f1d9a;
$custom-light: #a866b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1d9a",
  "rgb": {
    "r": 127,
    "g": 29,
    "b": 154
  },
  "hsl": {
    "h": 287.04,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45162,
    "c": 0.19498,
    "h": 317.5
  },
  "luminance": 0.07724
}

Semantic roles & 50–950 ramp

primary
#7F1D9A
secondary
#69C251
accent
#EB3D62
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F1D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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