#7F2FA2#7F2FA2

#7F2FA2 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.4% C 0.183 H 313.5°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#7F2FA2
RGBrgb(127, 47, 162)
HSLhsl(282, 55%, 41%)
HSVhsv(282, 71%, 64%)
CMYKcmyk(21.6%, 71%, 0%, 36.5%)
CIE-LABlab(36.28, 52.39, -46.98)
CIE-LCHlch(36.28, 70.37, 318.12°)
OKLaboklab(47.38% 0.1258 -0.1325)
OKLCHoklch(47.38% 0.183 313.5)
XYZxyz(16.2894, 9.1542, 35.0843)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FA2 #52A22F
analogous
#452FA2 #7F2FA2 #A22F8B
triadic
#7F2FA2 #A27F2F #2FA27F
tetradic
#7F2FA2 #A2452F #52A22F #2F8BA2
square
#7F2FA2 #A2452F #52A22F #2F8BA2
split-complementary
#7F2FA2 #8BA22F #2FA245
monochromatic
#351343 #5A2173 #7F2FA2 #A145C9 #B975D7

Accessibility & contrast

On white

7.42
#7F2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7F2FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2FA2
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FA2#FFFFFF#000000##FFFFFF
##7F2FA21.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#27579F
Tritanopia (blue-blind)
#7B4765
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f2fa2;
/* rgb */ color: rgb(127, 47, 162);
/* oklch */ color: oklch(47.4% 0.183 313.5);
Tailwind
colors: {
  custom: {
    50: '#a86fbe',
    500: '#7f2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fa2;
$custom-light: #a86fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fa2",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 281.739,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47377,
    "c": 0.18271,
    "h": 313.5
  },
  "luminance": 0.09154
}

Semantic roles & 50–950 ramp

primary
#7F2FA2
secondary
#87BF6E
accent
#DE4977
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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