#7F2DA3#7F2DA3

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

Color values

HEX#7F2DA3
RGBrgb(127, 45, 163)
HSLhsl(282, 57%, 41%)
HSVhsv(282, 72%, 64%)
CMYKcmyk(22.1%, 72.4%, 0%, 36.1%)
CIE-LABlab(36.05, 53.45, -47.95)
CIE-LCHlch(36.05, 71.80, 318.10°)
OKLaboklab(47.23% 0.1278 -0.1353)
OKLCHoklch(47.23% 0.186 313.4)
XYZxyz(16.3005, 9.0336, 35.5282)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2DA3 #51A32D
analogous
#442DA3 #7F2DA3 #A32D8C
triadic
#7F2DA3 #A37F2D #2DA37F
tetradic
#7F2DA3 #A3442D #51A32D #2D8CA3
square
#7F2DA3 #A3442D #51A32D #2D8CA3
split-complementary
#7F2DA3 #8CA32D #2DA344
monochromatic
#341343 #5A2073 #7F2DA3 #A142CB #B972D8

Accessibility & contrast

On white

7.48
#7F2DA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7F2DA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2DA3
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2DA3#FFFFFF#000000##FFFFFF
##7F2DA31.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#2357A0
Tritanopia (blue-blind)
#7B4665
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f2da3;
/* rgb */ color: rgb(127, 45, 163);
/* oklch */ color: oklch(47.2% 0.186 313.4);
Tailwind
colors: {
  custom: {
    50: '#a86ebf',
    500: '#7f2da3',
    950: '#000000',
  },
}
SCSS
$custom: #7f2da3;
$custom-light: #a86ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2da3",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 163
  },
  "hsl": {
    "h": 281.695,
    "s": 56.731,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47234,
    "c": 0.18614,
    "h": 313.4
  },
  "luminance": 0.09033
}

Semantic roles & 50–950 ramp

primary
#7F2DA3
secondary
#86C06C
accent
#E04876
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2DA3

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

Preview Lab → · Contrast checker → · Palette generator →

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