#7F1EAA#7F1EAA

#7F1EAA is a mid, highly saturated purple. Relative luminance 0.083; OKLCH L 46.4% C 0.208 H 312.2°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#7F1EAA
RGBrgb(127, 30, 170)
HSLhsl(282, 70%, 39%)
HSVhsv(282, 82%, 67%)
CMYKcmyk(25.3%, 82.4%, 0%, 33.3%)
CIE-LABlab(34.69, 60.28, -54.36)
CIE-LCHlch(34.69, 81.17, 317.96°)
OKLaboklab(46.43% 0.1397 -0.154)
OKLCHoklch(46.43% 0.208 312.2)
XYZxyz(16.4710, 8.3433, 38.7652)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1EAA #49AA1E
analogous
#391EAA #7F1EAA #AA1E8F
triadic
#7F1EAA #AA7F1E #1EAA7F
tetradic
#7F1EAA #AA391E #49AA1E #1E8FAA
square
#7F1EAA #AA391E #49AA1E #1E8FAA
split-complementary
#7F1EAA #8FAA1E #1EAA39
monochromatic
#310C42 #581576 #7F1EAA #A42CDA #BB60E3

Accessibility & contrast

On white

7.87
#7F1EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7F1EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1EAA
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1EAA#FFFFFF#000000##FFFFFF
##7F1EAA1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#0053A7
Tritanopia (blue-blind)
#7A4266
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f1eaa;
/* rgb */ color: rgb(127, 30, 170);
/* oklch */ color: oklch(46.4% 0.208 312.2);
Tailwind
colors: {
  custom: {
    50: '#a968c4',
    500: '#7f1eaa',
    950: '#000000',
  },
}
SCSS
$custom: #7f1eaa;
$custom-light: #a968c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1eaa",
  "rgb": {
    "r": 127,
    "g": 30,
    "b": 170
  },
  "hsl": {
    "h": 281.571,
    "s": 70,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46435,
    "c": 0.20795,
    "h": 312.2
  },
  "luminance": 0.08343
}

Semantic roles & 50–950 ramp

primary
#7F1EAA
secondary
#7DC75C
accent
#ED3B72
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F1EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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