#7F2278#7F2278

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

Color values

HEX#7F2278
RGBrgb(127, 34, 120)
HSLhsl(305, 58%, 32%)
HSVhsv(305, 73%, 50%)
CMYKcmyk(0%, 73.2%, 5.5%, 50.2%)
CIE-LABlab(31.84, 49.52, -28.20)
CIE-LCHlch(31.84, 56.99, 330.35°)
OKLaboklab(43.36% 0.1413 -0.0776)
OKLCHoklch(43.36% 0.161 331.2)
XYZxyz(12.7146, 7.0131, 18.4497)
Luminance0.0701 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2278 #227F29
analogous
#58227F #7F2278 #7F224A
triadic
#7F2278 #787F22 #22787F
tetradic
#7F2278 #7F5822 #227F29 #224A7F
square
#7F2278 #7F5822 #227F29 #224A7F
split-complementary
#7F2278 #4A7F22 #227F58
monochromatic
#1E081D #4F154A #7F2278 #AF2FA6 #CF4CC5

Accessibility & contrast

On white

8.74
#7F2278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7F2278 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2278
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2278#FFFFFF#000000##FFFFFF
##7F22781.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B437A
Deuteranopia (green-blind)
#3E4F76
Tritanopia (blue-blind)
#842D4A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f2278;
/* rgb */ color: rgb(127, 34, 120);
/* oklch */ color: oklch(43.4% 0.161 331.2);
Tailwind
colors: {
  custom: {
    50: '#a7679f',
    500: '#7f2278',
    950: '#000000',
  },
}
SCSS
$custom: #7f2278;
$custom-light: #a7679f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2278",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 120
  },
  "hsl": {
    "h": 304.516,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.4336,
    "c": 0.16121,
    "h": 331.2
  },
  "luminance": 0.07012
}

Semantic roles & 50–950 ramp

primary
#7F2278
secondary
#4BB253
accent
#E15247
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F2278

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

Preview Lab → · Contrast checker → · Palette generator →

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