#7F1DA7#7F1DA7

#7F1DA7 is a mid, highly saturated purple. Relative luminance 0.082; OKLCH L 46.1% C 0.206 H 313.2°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#7F1DA7
RGBrgb(127, 29, 167)
HSLhsl(283, 70%, 38%)
HSVhsv(283, 83%, 65%)
CMYKcmyk(24%, 82.6%, 0%, 34.5%)
CIE-LABlab(34.36, 59.97, -53.09)
CIE-LCHlch(34.36, 80.09, 318.48°)
OKLaboklab(46.13% 0.1411 -0.1503)
OKLCHoklch(46.13% 0.206 313.2)
XYZxyz(16.1656, 8.1813, 37.2793)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1DA7 #45A71D
analogous
#3A1DA7 #7F1DA7 #A71D8A
triadic
#7F1DA7 #A77F1D #1DA77F
tetradic
#7F1DA7 #A73A1D #45A71D #1D8AA7
square
#7F1DA7 #A73A1D #45A71D #1D8AA7
split-complementary
#7F1DA7 #8AA71D #1DA73A
monochromatic
#300B3F #571473 #7F1DA7 #A628DA #BC5CE3

Accessibility & contrast

On white

7.97
#7F1DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7F1DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1DA7
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1DA7#FFFFFF#000000##FFFFFF
##7F1DA71.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAB
Deuteranopia (green-blind)
#0153A4
Tritanopia (blue-blind)
#7B4064
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f1da7;
/* rgb */ color: rgb(127, 29, 167);
/* oklch */ color: oklch(46.1% 0.206 313.2);
Tailwind
colors: {
  custom: {
    50: '#a967c2',
    500: '#7f1da7',
    950: '#000000',
  },
}
SCSS
$custom: #7f1da7;
$custom-light: #a967c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1da7",
  "rgb": {
    "r": 127,
    "g": 29,
    "b": 167
  },
  "hsl": {
    "h": 282.609,
    "s": 70.408,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46133,
    "c": 0.20618,
    "h": 313.2
  },
  "luminance": 0.08181
}

Semantic roles & 50–950 ramp

primary
#7F1DA7
secondary
#79C759
accent
#ED3B6E
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F1DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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