#7F2284#7F2284

#7F2284 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.171 H 325.8°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#7F2284
RGBrgb(127, 34, 132)
HSLhsl(297, 59%, 33%)
HSVhsv(297, 74%, 52%)
CMYKcmyk(3.8%, 74.2%, 0%, 48.2%)
CIE-LABlab(32.53, 51.62, -34.62)
CIE-LCHlch(32.53, 62.15, 326.15°)
OKLaboklab(44.08% 0.1415 -0.0962)
OKLCHoklch(44.08% 0.171 325.8)
XYZxyz(13.4890, 7.3229, 22.5283)
Luminance0.0732 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2284 #278422
analogous
#4E2284 #7F2284 #842258
triadic
#7F2284 #847F22 #22847F
tetradic
#7F2284 #844E22 #278422 #225884
square
#7F2284 #844E22 #278422 #225884
split-complementary
#7F2284 #588422 #22844E
monochromatic
#210923 #501553 #7F2284 #AE2FB5 #CB4FD2

Accessibility & contrast

On white

8.52
#7F2284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7F2284 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2284
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2284#FFFFFF#000000##FFFFFF
##7F22841.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064587
Deuteranopia (green-blind)
#385082
Tritanopia (blue-blind)
#823251
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f2284;
/* rgb */ color: rgb(127, 34, 132);
/* oklch */ color: oklch(44.1% 0.171 325.8);
Tailwind
colors: {
  custom: {
    50: '#a767a8',
    500: '#7f2284',
    950: '#000000',
  },
}
SCSS
$custom: #7f2284;
$custom-light: #a767a8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2284",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 132
  },
  "hsl": {
    "h": 296.939,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44082,
    "c": 0.1711,
    "h": 325.8
  },
  "luminance": 0.07322
}

Semantic roles & 50–950 ramp

primary
#7F2284
secondary
#52B54D
accent
#E2464E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2284

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

Preview Lab → · Contrast checker → · Palette generator →

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