#7D2182#7D2182

#7D2182 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.6% C 0.170 H 325.8°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#7D2182
RGBrgb(125, 33, 130)
HSLhsl(297, 60%, 32%)
HSVhsv(297, 75%, 51%)
CMYKcmyk(3.8%, 74.6%, 0%, 49%)
CIE-LABlab(31.94, 51.16, -34.33)
CIE-LCHlch(31.94, 61.61, 326.14°)
OKLaboklab(43.56% 0.1402 -0.0954)
OKLCHoklch(43.56% 0.17 325.8)
XYZxyz(13.0303, 7.0603, 21.7912)
Luminance0.0706 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2182 #268221
analogous
#4D2182 #7D2182 #822157
triadic
#7D2182 #827D21 #21827D
tetradic
#7D2182 #824D21 #268221 #215782
square
#7D2182 #824D21 #268221 #215782
split-complementary
#7D2182 #578221 #21824D
monochromatic
#1F0820 #4E1551 #7D2182 #AC2DB3 #CB4CD2

Accessibility & contrast

On white

8.71
#7D2182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7D2182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2182
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2182#FFFFFF#000000##FFFFFF
##7D21821.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054485
Deuteranopia (green-blind)
#364F80
Tritanopia (blue-blind)
#803150
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d2182;
/* rgb */ color: rgb(125, 33, 130);
/* oklch */ color: oklch(43.6% 0.170 325.8);
Tailwind
colors: {
  custom: {
    50: '#a666a7',
    500: '#7d2182',
    950: '#000000',
  },
}
SCSS
$custom: #7d2182;
$custom-light: #a666a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2182",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 296.907,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43557,
    "c": 0.16958,
    "h": 325.8
  },
  "luminance": 0.07059
}

Semantic roles & 50–950 ramp

primary
#7D2182
secondary
#50B44A
accent
#E3454D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D2182

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

Preview Lab → · Contrast checker → · Palette generator →

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