#7F2181#7F2181

#7F2181 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.8% C 0.170 H 327.1°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#7F2181
RGBrgb(127, 33, 129)
HSLhsl(299, 59%, 32%)
HSVhsv(299, 74%, 51%)
CMYKcmyk(1.6%, 74.4%, 0%, 49.4%)
CIE-LABlab(32.23, 51.44, -33.23)
CIE-LCHlch(32.23, 61.24, 327.14°)
OKLaboklab(43.81% 0.1425 -0.0922)
OKLCHoklch(43.81% 0.17 327.1)
XYZxyz(13.2585, 7.1856, 21.4533)
Luminance0.0718 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2181 #238121
analogous
#4F2181 #7F2181 #812153
triadic
#7F2181 #817F21 #21817F
tetradic
#7F2181 #814F21 #238121 #215381
square
#7F2181 #814F21 #238121 #215381
split-complementary
#7F2181 #538121 #21814F
monochromatic
#1F0820 #4F1550 #7F2181 #AF2DB2 #CE4BD1

Accessibility & contrast

On white

8.62
#7F2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7F2181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2181
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2181#FFFFFF#000000##FFFFFF
##7F21811.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4484
Deuteranopia (green-blind)
#39507F
Tritanopia (blue-blind)
#83304F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f2181;
/* rgb */ color: rgb(127, 33, 129);
/* oklch */ color: oklch(43.8% 0.170 327.1);
Tailwind
colors: {
  custom: {
    50: '#a767a6',
    500: '#7f2181',
    950: '#000000',
  },
}
SCSS
$custom: #7f2181;
$custom-light: #a767a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2181",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 298.75,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43806,
    "c": 0.16974,
    "h": 327.1
  },
  "luminance": 0.07185
}

Semantic roles & 50–950 ramp

primary
#7F2181
secondary
#4CB44A
accent
#E24549
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F2181

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

Preview Lab → · Contrast checker → · Palette generator →

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