#7F2EA2#7F2EA2

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

Color values

HEX#7F2EA2
RGBrgb(127, 46, 162)
HSLhsl(282, 56%, 41%)
HSVhsv(282, 72%, 64%)
CMYKcmyk(21.6%, 71.6%, 0%, 36.5%)
CIE-LABlab(36.13, 52.81, -47.22)
CIE-LCHlch(36.13, 70.85, 318.20°)
OKLaboklab(47.27% 0.1269 -0.1332)
OKLCHoklch(47.27% 0.184 313.6)
XYZxyz(16.2499, 9.0752, 35.0711)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2EA2 #51A22E
analogous
#452EA2 #7F2EA2 #A22E8B
triadic
#7F2EA2 #A27F2E #2EA27F
tetradic
#7F2EA2 #A2452E #51A22E #2E8BA2
square
#7F2EA2 #A2452E #51A22E #2E8BA2
split-complementary
#7F2EA2 #8BA22E #2EA245
monochromatic
#341343 #5A2072 #7F2EA2 #A143CA #B973D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F2EA2#FFFFFF#000000##FFFFFF
##7F2EA21.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)
#0051A5
Deuteranopia (green-blind)
#26579F
Tritanopia (blue-blind)
#7B4665
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f2ea2;
/* rgb */ color: rgb(127, 46, 162);
/* oklch */ color: oklch(47.3% 0.184 313.6);
Tailwind
colors: {
  custom: {
    50: '#a86ebe',
    500: '#7f2ea2',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ea2;
$custom-light: #a86ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ea2",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 281.897,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47269,
    "c": 0.18395,
    "h": 313.6
  },
  "luminance": 0.09075
}

Semantic roles & 50–950 ramp

primary
#7F2EA2
secondary
#86BF6D
accent
#DF4976
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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