#7F2EA3#7F2EA3

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

Color values

HEX#7F2EA3
RGBrgb(127, 46, 163)
HSLhsl(282, 56%, 41%)
HSVhsv(282, 72%, 64%)
CMYKcmyk(22.1%, 71.8%, 0%, 36.1%)
CIE-LABlab(36.20, 53.03, -47.71)
CIE-LCHlch(36.20, 71.33, 318.02°)
OKLaboklab(47.34% 0.1268 -0.1346)
OKLCHoklch(47.34% 0.185 313.3)
XYZxyz(16.3391, 9.1109, 35.5411)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2EA3 #52A32E
analogous
#442EA3 #7F2EA3 #A32E8C
triadic
#7F2EA3 #A37F2E #2EA37F
tetradic
#7F2EA3 #A3442E #52A32E #2E8CA3
square
#7F2EA3 #A3442E #52A32E #2E8CA3
split-complementary
#7F2EA3 #8CA32E #2EA344
monochromatic
#351344 #5A2173 #7F2EA3 #A144CA #B974D8

Accessibility & contrast

On white

7.44
#7F2EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7F2EA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2EA3
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2EA3#FFFFFF#000000##FFFFFF
##7F2EA31.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f2ea3;
/* rgb */ color: rgb(127, 46, 163);
/* oklch */ color: oklch(47.3% 0.185 313.3);
Tailwind
colors: {
  custom: {
    50: '#a86ebf',
    500: '#7f2ea3',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ea3;
$custom-light: #a86ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ea3",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 281.538,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47339,
    "c": 0.18492,
    "h": 313.3
  },
  "luminance": 0.0911
}

Semantic roles & 50–950 ramp

primary
#7F2EA3
secondary
#87BF6D
accent
#DF4977
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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