#7F2EA7#7F2EA7

#7F2EA7 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.6% C 0.189 H 312.0°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#7F2EA7
RGBrgb(127, 46, 167)
HSLhsl(280, 57%, 42%)
HSVhsv(280, 72%, 65%)
CMYKcmyk(24%, 72.5%, 0%, 34.5%)
CIE-LABlab(36.47, 53.88, -49.67)
CIE-LCHlch(36.47, 73.28, 317.33°)
OKLaboklab(47.62% 0.1263 -0.1404)
OKLCHoklch(47.62% 0.189 312)
XYZxyz(16.7032, 9.2565, 37.4585)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2EA7 #56A72E
analogous
#422EA7 #7F2EA7 #A72E93
triadic
#7F2EA7 #A77F2E #2EA77F
tetradic
#7F2EA7 #A7422E #56A72E #2E93A7
square
#7F2EA7 #A7422E #56A72E #2E93A7
split-complementary
#7F2EA7 #93A72E #2EA742
monochromatic
#361447 #5B2177 #7F2EA7 #A046CC #B976D9

Accessibility & contrast

On white

7.37
#7F2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7F2EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2EA7
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2EA7#FFFFFF#000000##FFFFFF
##7F2EA71.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AA
Deuteranopia (green-blind)
#1F57A4
Tritanopia (blue-blind)
#7A4968
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f2ea7;
/* rgb */ color: rgb(127, 46, 167);
/* oklch */ color: oklch(47.6% 0.189 312.0);
Tailwind
colors: {
  custom: {
    50: '#a86ec2',
    500: '#7f2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ea7;
$custom-light: #a86ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ea7",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 280.165,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47624,
    "c": 0.18881,
    "h": 312
  },
  "luminance": 0.09256
}

Semantic roles & 50–950 ramp

primary
#7F2EA7
secondary
#8BC170
accent
#E0487A
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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