#7F2EA0#7F2EA0

#7F2EA0 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.1% C 0.182 H 314.3°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#7F2EA0
RGBrgb(127, 46, 160)
HSLhsl(283, 55%, 40%)
HSVhsv(283, 71%, 63%)
CMYKcmyk(20.6%, 71.2%, 0%, 37.3%)
CIE-LABlab(35.99, 52.39, -46.23)
CIE-LCHlch(35.99, 69.87, 318.57°)
OKLaboklab(47.13% 0.1271 -0.1303)
OKLCHoklch(47.13% 0.182 314.3)
XYZxyz(16.0735, 9.0046, 34.1423)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2EA0 #4FA02E
analogous
#462EA0 #7F2EA0 #A02E88
triadic
#7F2EA0 #A07F2E #2EA07F
tetradic
#7F2EA0 #A0462E #4FA02E #2E88A0
square
#7F2EA0 #A0462E #4FA02E #2E88A0
split-complementary
#7F2EA0 #88A02E #2EA046
monochromatic
#341341 #592070 #7F2EA0 #A242C9 #B972D6

Accessibility & contrast

On white

7.50
#7F2EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7F2EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2EA0
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2EA0#FFFFFF#000000##FFFFFF
##7F2EA01.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A3
Deuteranopia (green-blind)
#28579D
Tritanopia (blue-blind)
#7C4664
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f2ea0;
/* rgb */ color: rgb(127, 46, 160);
/* oklch */ color: oklch(47.1% 0.182 314.3);
Tailwind
colors: {
  custom: {
    50: '#a86ebd',
    500: '#7f2ea0',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ea0;
$custom-light: #a86ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ea0",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 282.632,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47129,
    "c": 0.18201,
    "h": 314.3
  },
  "luminance": 0.09004
}

Semantic roles & 50–950 ramp

primary
#7F2EA0
secondary
#84BE6C
accent
#DF4974
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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