#7F1DA8#7F1DA8

#7F1DA8 is a mid, highly saturated purple. Relative luminance 0.082; OKLCH L 46.2% C 0.207 H 312.9°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#7F1DA8
RGBrgb(127, 29, 168)
HSLhsl(282, 71%, 39%)
HSVhsv(282, 83%, 66%)
CMYKcmyk(24.4%, 82.7%, 0%, 34.1%)
CIE-LABlab(34.43, 60.17, -53.57)
CIE-LCHlch(34.43, 80.56, 318.32°)
OKLaboklab(46.21% 0.1409 -0.1517)
OKLCHoklch(46.21% 0.207 312.9)
XYZxyz(16.2584, 8.2184, 37.7681)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1DA8 #46A81D
analogous
#391DA8 #7F1DA8 #A81D8B
triadic
#7F1DA8 #A87F1D #1DA87F
tetradic
#7F1DA8 #A8391D #46A81D #1D8BA8
square
#7F1DA8 #A8391D #46A81D #1D8BA8
split-complementary
#7F1DA8 #8BA81D #1DA839
monochromatic
#300B40 #581474 #7F1DA8 #A628DA #BB5CE3

Accessibility & contrast

On white

7.94
#7F1DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1DA8
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1DA8#FFFFFF#000000##FFFFFF
##7F1DA81.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#0053A5
Tritanopia (blue-blind)
#7A4164
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f1da8;
/* rgb */ color: rgb(127, 29, 168);
/* oklch */ color: oklch(46.2% 0.207 312.9);
Tailwind
colors: {
  custom: {
    50: '#a967c3',
    500: '#7f1da8',
    950: '#000000',
  },
}
SCSS
$custom: #7f1da8;
$custom-light: #a967c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1da8",
  "rgb": {
    "r": 127,
    "g": 29,
    "b": 168
  },
  "hsl": {
    "h": 282.302,
    "s": 70.558,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4621,
    "c": 0.20705,
    "h": 312.9
  },
  "luminance": 0.08218
}

Semantic roles & 50–950 ramp

primary
#7F1DA8
secondary
#7AC75A
accent
#ED3A6F
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F1DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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