#7F2DA2#7F2DA2

#7F2DA2 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.2% C 0.185 H 313.7°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#7F2DA2
RGBrgb(127, 45, 162)
HSLhsl(282, 57%, 41%)
HSVhsv(282, 72%, 64%)
CMYKcmyk(21.6%, 72.2%, 0%, 36.5%)
CIE-LABlab(35.98, 53.23, -47.46)
CIE-LCHlch(35.98, 71.32, 318.28°)
OKLaboklab(47.16% 0.1279 -0.1339)
OKLCHoklch(47.16% 0.185 313.7)
XYZxyz(16.2112, 8.9980, 35.0582)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2DA2 #50A22D
analogous
#442DA2 #7F2DA2 #A22D8A
triadic
#7F2DA2 #A27F2D #2DA27F
tetradic
#7F2DA2 #A2442D #50A22D #2D8AA2
square
#7F2DA2 #A2442D #50A22D #2D8AA2
split-complementary
#7F2DA2 #8AA22D #2DA244
monochromatic
#341242 #592072 #7F2DA2 #A242CA #B972D8

Accessibility & contrast

On white

7.50
#7F2DA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7F2DA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2DA2
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2DA2#FFFFFF#000000##FFFFFF
##7F2DA21.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#25579F
Tritanopia (blue-blind)
#7C4665
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f2da2;
/* rgb */ color: rgb(127, 45, 162);
/* oklch */ color: oklch(47.2% 0.185 313.7);
Tailwind
colors: {
  custom: {
    50: '#a86ebe',
    500: '#7f2da2',
    950: '#000000',
  },
}
SCSS
$custom: #7f2da2;
$custom-light: #a86ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2da2",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 162
  },
  "hsl": {
    "h": 282.051,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47163,
    "c": 0.18518,
    "h": 313.7
  },
  "luminance": 0.08997
}

Semantic roles & 50–950 ramp

primary
#7F2DA2
secondary
#85BF6C
accent
#E04875
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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