#7F2EA4#7F2EA4

#7F2EA4 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.4% C 0.186 H 312.9°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#7F2EA4
RGBrgb(127, 46, 164)
HSLhsl(281, 56%, 41%)
HSVhsv(281, 72%, 64%)
CMYKcmyk(22.6%, 72%, 0%, 35.7%)
CIE-LABlab(36.27, 53.24, -48.20)
CIE-LCHlch(36.27, 71.82, 317.84°)
OKLaboklab(47.41% 0.1267 -0.1361)
OKLCHoklch(47.41% 0.186 312.9)
XYZxyz(16.4290, 9.1468, 36.0148)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2EA4 #53A42E
analogous
#442EA4 #7F2EA4 #A42E8E
triadic
#7F2EA4 #A47F2E #2EA47F
tetradic
#7F2EA4 #A4442E #53A42E #2E8EA4
square
#7F2EA4 #A4442E #53A42E #2E8EA4
split-complementary
#7F2EA4 #8EA42E #2EA444
monochromatic
#351344 #5A2174 #7F2EA4 #A145CB #B974D8

Accessibility & contrast

On white

7.42
#7F2EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7F2EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2EA4
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2EA4#FFFFFF#000000##FFFFFF
##7F2EA41.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f2ea4;
/* rgb */ color: rgb(127, 46, 164);
/* oklch */ color: oklch(47.4% 0.186 312.9);
Tailwind
colors: {
  custom: {
    50: '#a86ec0',
    500: '#7f2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ea4;
$custom-light: #a86ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ea4",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 281.186,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4741,
    "c": 0.18589,
    "h": 312.9
  },
  "luminance": 0.09146
}

Semantic roles & 50–950 ramp

primary
#7F2EA4
secondary
#88C06E
accent
#DF4878
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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