#7F2279#7F2279

#7F2279 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.4% C 0.162 H 330.7°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#7F2279
RGBrgb(127, 34, 121)
HSLhsl(304, 58%, 32%)
HSVhsv(304, 73%, 50%)
CMYKcmyk(0%, 73.2%, 4.7%, 50.2%)
CIE-LABlab(31.89, 49.69, -28.74)
CIE-LCHlch(31.89, 57.40, 329.96°)
OKLaboklab(43.42% 0.1414 -0.0792)
OKLCHoklch(43.42% 0.162 330.7)
XYZxyz(12.7756, 7.0375, 18.7710)
Luminance0.0704 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2279 #227F28
analogous
#57227F #7F2279 #7F224B
triadic
#7F2279 #797F22 #22797F
tetradic
#7F2279 #7F5722 #227F28 #224B7F
square
#7F2279 #7F5722 #227F28 #224B7F
split-complementary
#7F2279 #4B7F22 #227F57
monochromatic
#1E081D #4F154B #7F2279 #AF2FA7 #CF4CC7

Accessibility & contrast

On white

8.72
#7F2279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7F2279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2279
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2279#FFFFFF#000000##FFFFFF
##7F22791.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19437B
Deuteranopia (green-blind)
#3E5077
Tritanopia (blue-blind)
#842D4B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f2279;
/* rgb */ color: rgb(127, 34, 121);
/* oklch */ color: oklch(43.4% 0.162 330.7);
Tailwind
colors: {
  custom: {
    50: '#a767a0',
    500: '#7f2279',
    950: '#000000',
  },
}
SCSS
$custom: #7f2279;
$custom-light: #a767a0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2279",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 121
  },
  "hsl": {
    "h": 303.871,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43418,
    "c": 0.16201,
    "h": 330.7
  },
  "luminance": 0.07037
}

Semantic roles & 50–950 ramp

primary
#7F2279
secondary
#4BB252
accent
#E15147
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F2279

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

Preview Lab → · Contrast checker → · Palette generator →

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