#7F2282#7F2282

#7F2282 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.0% C 0.169 H 326.6°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#7F2282
RGBrgb(127, 34, 130)
HSLhsl(298, 59%, 32%)
HSVhsv(298, 74%, 51%)
CMYKcmyk(2.3%, 73.8%, 0%, 49%)
CIE-LABlab(32.41, 51.26, -33.56)
CIE-LCHlch(32.41, 61.27, 326.79°)
OKLaboklab(43.96% 0.1415 -0.0932)
OKLCHoklch(43.96% 0.169 326.6)
XYZxyz(13.3535, 7.2687, 21.8144)
Luminance0.0727 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2282 #258222
analogous
#4F2282 #7F2282 #822255
triadic
#7F2282 #827F22 #22827F
tetradic
#7F2282 #824F22 #258222 #225582
square
#7F2282 #824F22 #258222 #225582
split-complementary
#7F2282 #558222 #22824F
monochromatic
#200921 #501551 #7F2282 #AE2FB3 #CD4ED1

Accessibility & contrast

On white

8.56
#7F2282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2282
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2282#FFFFFF#000000##FFFFFF
##7F22821.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4585
Deuteranopia (green-blind)
#395080
Tritanopia (blue-blind)
#833150
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f2282;
/* rgb */ color: rgb(127, 34, 130);
/* oklch */ color: oklch(44.0% 0.169 326.6);
Tailwind
colors: {
  custom: {
    50: '#a767a7',
    500: '#7f2282',
    950: '#000000',
  },
}
SCSS
$custom: #7f2282;
$custom-light: #a767a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2282",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 298.125,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43958,
    "c": 0.16941,
    "h": 326.6
  },
  "luminance": 0.07268
}

Semantic roles & 50–950 ramp

primary
#7F2282
secondary
#4FB44C
accent
#E2464B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F2282

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

Preview Lab → · Contrast checker → · Palette generator →

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