#7F2182#7F2182

#7F2182 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.9% C 0.171 H 326.7°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#7F2182
RGBrgb(127, 33, 130)
HSLhsl(298, 60%, 32%)
HSVhsv(298, 75%, 51%)
CMYKcmyk(2.3%, 74.6%, 0%, 49%)
CIE-LABlab(32.29, 51.62, -33.76)
CIE-LCHlch(32.29, 61.68, 326.81°)
OKLaboklab(43.87% 0.1425 -0.0937)
OKLCHoklch(43.87% 0.171 326.7)
XYZxyz(13.3253, 7.2124, 21.8050)
Luminance0.0721 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2182 #248221
analogous
#4F2182 #7F2182 #822155
triadic
#7F2182 #827F21 #21827F
tetradic
#7F2182 #824F21 #248221 #215582
square
#7F2182 #824F21 #248221 #215582
split-complementary
#7F2182 #558221 #21824F
monochromatic
#200820 #4F1551 #7F2182 #AF2DB3 #CD4CD2

Accessibility & contrast

On white

8.60
#7F2182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7F2182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2182
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2182#FFFFFF#000000##FFFFFF
##7F21821.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094485
Deuteranopia (green-blind)
#385080
Tritanopia (blue-blind)
#833150
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f2182;
/* rgb */ color: rgb(127, 33, 130);
/* oklch */ color: oklch(43.9% 0.171 326.7);
Tailwind
colors: {
  custom: {
    50: '#a767a7',
    500: '#7f2182',
    950: '#000000',
  },
}
SCSS
$custom: #7f2182;
$custom-light: #a767a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2182",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 298.144,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43868,
    "c": 0.17056,
    "h": 326.7
  },
  "luminance": 0.07211
}

Semantic roles & 50–950 ramp

primary
#7F2182
secondary
#4EB44A
accent
#E3454A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F2182

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

Preview Lab → · Contrast checker → · Palette generator →

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