#7F2EA6#7F2EA6

#7F2EA6 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.6% C 0.188 H 312.3°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#7F2EA6
RGBrgb(127, 46, 166)
HSLhsl(281, 57%, 42%)
HSVhsv(281, 72%, 65%)
CMYKcmyk(23.5%, 72.3%, 0%, 34.9%)
CIE-LABlab(36.40, 53.67, -49.18)
CIE-LCHlch(36.40, 72.79, 317.50°)
OKLaboklab(47.55% 0.1264 -0.1389)
OKLCHoklch(47.55% 0.188 312.3)
XYZxyz(16.6111, 9.2197, 36.9735)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2EA6 #55A62E
analogous
#432EA6 #7F2EA6 #A62E91
triadic
#7F2EA6 #A67F2E #2EA67F
tetradic
#7F2EA6 #A6432E #55A62E #2E91A6
square
#7F2EA6 #A6432E #55A62E #2E91A6
split-complementary
#7F2EA6 #91A62E #2EA643
monochromatic
#361346 #5A2176 #7F2EA6 #A046CC #B976D9

Accessibility & contrast

On white

7.38
#7F2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2EA6
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2EA6#FFFFFF#000000##FFFFFF
##7F2EA61.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A9
Deuteranopia (green-blind)
#2057A3
Tritanopia (blue-blind)
#7A4867
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f2ea6;
/* rgb */ color: rgb(127, 46, 166);
/* oklch */ color: oklch(47.6% 0.188 312.3);
Tailwind
colors: {
  custom: {
    50: '#a86ec1',
    500: '#7f2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ea6;
$custom-light: #a86ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ea6",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 280.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47552,
    "c": 0.18783,
    "h": 312.3
  },
  "luminance": 0.09219
}

Semantic roles & 50–950 ramp

primary
#7F2EA6
secondary
#8AC16F
accent
#E04879
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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