#7F2DA4#7F2DA4

#7F2DA4 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.3% C 0.187 H 313.0°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#7F2DA4
RGBrgb(127, 45, 164)
HSLhsl(281, 57%, 41%)
HSVhsv(281, 73%, 64%)
CMYKcmyk(22.6%, 72.6%, 0%, 35.7%)
CIE-LABlab(36.12, 53.66, -48.44)
CIE-LCHlch(36.12, 72.29, 317.93°)
OKLaboklab(47.31% 0.1277 -0.1368)
OKLCHoklch(47.31% 0.187 313)
XYZxyz(16.3904, 9.0696, 36.0020)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2DA4 #52A42D
analogous
#442DA4 #7F2DA4 #A42D8D
triadic
#7F2DA4 #A47F2D #2DA47F
tetradic
#7F2DA4 #A4442D #52A42D #2D8DA4
square
#7F2DA4 #A4442D #52A42D #2D8DA4
split-complementary
#7F2DA4 #8DA42D #2DA444
monochromatic
#351344 #5A2074 #7F2DA4 #A143CB #B973D9

Accessibility & contrast

On white

7.46
#7F2DA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2DA4
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2DA4#FFFFFF#000000##FFFFFF
##7F2DA41.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#2257A1
Tritanopia (blue-blind)
#7B4766
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f2da4;
/* rgb */ color: rgb(127, 45, 164);
/* oklch */ color: oklch(47.3% 0.187 313.0);
Tailwind
colors: {
  custom: {
    50: '#a86ec0',
    500: '#7f2da4',
    950: '#000000',
  },
}
SCSS
$custom: #7f2da4;
$custom-light: #a86ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2da4",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 164
  },
  "hsl": {
    "h": 281.345,
    "s": 56.938,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47305,
    "c": 0.1871,
    "h": 313
  },
  "luminance": 0.09069
}

Semantic roles & 50–950 ramp

primary
#7F2DA4
secondary
#87C06D
accent
#E04877
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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