#7F2EA5#7F2EA5

#7F2EA5 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.5% C 0.187 H 312.6°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#7F2EA5
RGBrgb(127, 46, 165)
HSLhsl(281, 56%, 41%)
HSVhsv(281, 72%, 65%)
CMYKcmyk(23%, 72.1%, 0%, 35.3%)
CIE-LABlab(36.33, 53.45, -48.69)
CIE-LCHlch(36.33, 72.31, 317.67°)
OKLaboklab(47.48% 0.1265 -0.1375)
OKLCHoklch(47.48% 0.187 312.6)
XYZxyz(16.5197, 9.1831, 36.4923)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2EA5 #54A52E
analogous
#442EA5 #7F2EA5 #A52E90
triadic
#7F2EA5 #A57F2E #2EA57F
tetradic
#7F2EA5 #A5442E #54A52E #2E90A5
square
#7F2EA5 #A5442E #54A52E #2E90A5
split-complementary
#7F2EA5 #90A52E #2EA544
monochromatic
#351345 #5A2175 #7F2EA5 #A045CB #B975D8

Accessibility & contrast

On white

7.40
#7F2EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7F2EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2EA5
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2EA5#FFFFFF#000000##FFFFFF
##7F2EA51.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#2257A2
Tritanopia (blue-blind)
#7B4866
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f2ea5;
/* rgb */ color: rgb(127, 46, 165);
/* oklch */ color: oklch(47.5% 0.187 312.6);
Tailwind
colors: {
  custom: {
    50: '#a86ec0',
    500: '#7f2ea5',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ea5;
$custom-light: #a86ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ea5",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 280.84,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47481,
    "c": 0.18687,
    "h": 312.6
  },
  "luminance": 0.09183
}

Semantic roles & 50–950 ramp

primary
#7F2EA5
secondary
#89C06F
accent
#E04879
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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