#7F2174#7F2174

#7F2174 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.0% C 0.159 H 333.2°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#7F2174
RGBrgb(127, 33, 116)
HSLhsl(307, 59%, 31%)
HSVhsv(307, 74%, 50%)
CMYKcmyk(0%, 74%, 8.7%, 50.2%)
CIE-LABlab(31.49, 49.22, -26.21)
CIE-LCHlch(31.49, 55.77, 331.96°)
OKLaboklab(43.04% 0.1421 -0.0719)
OKLCHoklch(43.04% 0.159 333.2)
XYZxyz(12.4487, 6.8617, 17.1884)
Luminance0.0686 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2174 #217F2C
analogous
#5B217F #7F2174 #7F2145
triadic
#7F2174 #747F21 #21747F
tetradic
#7F2174 #7F5B21 #217F2C #21457F
square
#7F2174 #7F5B21 #217F2C #21457F
split-complementary
#7F2174 #457F21 #217F5B
monochromatic
#1E081B #4E1448 #7F2174 #B02EA0 #D04AC0

Accessibility & contrast

On white

8.85
#7F2174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2174
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2174#FFFFFF#000000##FFFFFF
##7F21741.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4176
Deuteranopia (green-blind)
#404F72
Tritanopia (blue-blind)
#852A48
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f2174;
/* rgb */ color: rgb(127, 33, 116);
/* oklch */ color: oklch(43.0% 0.159 333.2);
Tailwind
colors: {
  custom: {
    50: '#a7669c',
    500: '#7f2174',
    950: '#000000',
  },
}
SCSS
$custom: #7f2174;
$custom-light: #a7669c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2174",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 307.021,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.4304,
    "c": 0.15925,
    "h": 333.2
  },
  "luminance": 0.06861
}

Semantic roles & 50–950 ramp

primary
#7F2174
secondary
#4AB256
accent
#E25846
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F2174

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

Preview Lab → · Contrast checker → · Palette generator →

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