#7F2173#7F2173

#7F2173 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.0% C 0.158 H 333.7°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#7F2173
RGBrgb(127, 33, 115)
HSLhsl(308, 59%, 31%)
HSVhsv(308, 74%, 50%)
CMYKcmyk(0%, 74%, 9.4%, 50.2%)
CIE-LABlab(31.44, 49.06, -25.66)
CIE-LCHlch(31.44, 55.37, 332.39°)
OKLaboklab(42.98% 0.142 -0.0703)
OKLCHoklch(42.98% 0.158 333.7)
XYZxyz(12.3909, 6.8386, 16.8837)
Luminance0.0684 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2173 #217F2D
analogous
#5C217F #7F2173 #7F2144
triadic
#7F2173 #737F21 #21737F
tetradic
#7F2173 #7F5C21 #217F2D #21447F
square
#7F2173 #7F5C21 #217F2D #21447F
split-complementary
#7F2173 #447F21 #217F5C
monochromatic
#1E081B #4E1447 #7F2173 #B02E9F #D04ABF

Accessibility & contrast

On white

8.87
#7F2173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7F2173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2173
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2173#FFFFFF#000000##FFFFFF
##7F21731.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4175
Deuteranopia (green-blind)
#404F71
Tritanopia (blue-blind)
#852A47
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f2173;
/* rgb */ color: rgb(127, 33, 115);
/* oklch */ color: oklch(43.0% 0.158 333.7);
Tailwind
colors: {
  custom: {
    50: '#a7669b',
    500: '#7f2173',
    950: '#000000',
  },
}
SCSS
$custom: #7f2173;
$custom-light: #a7669b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2173",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 307.66,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42984,
    "c": 0.15847,
    "h": 333.7
  },
  "luminance": 0.06838
}

Semantic roles & 50–950 ramp

primary
#7F2173
secondary
#4AB257
accent
#E25A46
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F2173

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

Preview Lab → · Contrast checker → · Palette generator →

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