#7F2281#7F2281

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

Color values

HEX#7F2281
RGBrgb(127, 34, 129)
HSLhsl(299, 58%, 32%)
HSVhsv(299, 74%, 51%)
CMYKcmyk(1.6%, 73.6%, 0%, 49.4%)
CIE-LABlab(32.35, 51.08, -33.03)
CIE-LCHlch(32.35, 60.83, 327.11°)
OKLaboklab(43.9% 0.1415 -0.0916)
OKLCHoklch(43.9% 0.169 327.1)
XYZxyz(13.2867, 7.2420, 21.4627)
Luminance0.0724 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2281 #248122
analogous
#502281 #7F2281 #812254
triadic
#7F2281 #817F22 #22817F
tetradic
#7F2281 #815022 #248122 #225481
square
#7F2281 #815022 #248122 #225481
split-complementary
#7F2281 #548122 #228150
monochromatic
#200820 #4F1551 #7F2281 #AF2FB1 #CD4DD0

Accessibility & contrast

On white

8.58
#7F2281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7F2281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2281
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2281#FFFFFF#000000##FFFFFF
##7F22811.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4584
Deuteranopia (green-blind)
#3A507F
Tritanopia (blue-blind)
#83314F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f2281;
/* rgb */ color: rgb(127, 34, 129);
/* oklch */ color: oklch(43.9% 0.169 327.1);
Tailwind
colors: {
  custom: {
    50: '#a767a6',
    500: '#7f2281',
    950: '#000000',
  },
}
SCSS
$custom: #7f2281;
$custom-light: #a767a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2281",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 129
  },
  "hsl": {
    "h": 298.737,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43896,
    "c": 0.16858,
    "h": 327.1
  },
  "luminance": 0.07241
}

Semantic roles & 50–950 ramp

primary
#7F2281
secondary
#4EB34B
accent
#E1464A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F2281

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

Preview Lab → · Contrast checker → · Palette generator →

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