#7F2180#7F2180

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

Color values

HEX#7F2180
RGBrgb(127, 33, 128)
HSLhsl(299, 59%, 32%)
HSVhsv(299, 74%, 50%)
CMYKcmyk(0.8%, 74.2%, 0%, 49.8%)
CIE-LABlab(32.17, 51.26, -32.70)
CIE-LCHlch(32.17, 60.81, 327.47°)
OKLaboklab(43.75% 0.1425 -0.0906)
OKLCHoklch(43.75% 0.169 327.5)
XYZxyz(13.1923, 7.1592, 21.1049)
Luminance0.0716 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2180 #228021
analogous
#502180 #7F2180 #802152
triadic
#7F2180 #807F21 #21807F
tetradic
#7F2180 #805021 #228021 #215280
square
#7F2180 #805021 #228021 #215280
split-complementary
#7F2180 #528021 #218050
monochromatic
#1E081F #4F144F #7F2180 #AF2EB1 #CF4BD1

Accessibility & contrast

On white

8.64
#7F2180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7F2180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2180
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2180#FFFFFF#000000##FFFFFF
##7F21801.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4483
Deuteranopia (green-blind)
#3A507E
Tritanopia (blue-blind)
#83304E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f2180;
/* rgb */ color: rgb(127, 33, 128);
/* oklch */ color: oklch(43.7% 0.169 327.5);
Tailwind
colors: {
  custom: {
    50: '#a767a5',
    500: '#7f2180',
    950: '#000000',
  },
}
SCSS
$custom: #7f2180;
$custom-light: #a767a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2180",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 299.368,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43745,
    "c": 0.16891,
    "h": 327.5
  },
  "luminance": 0.07158
}

Semantic roles & 50–950 ramp

primary
#7F2180
secondary
#4BB34A
accent
#E24647
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F2180

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

Preview Lab → · Contrast checker → · Palette generator →

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