#7F2FA1#7F2FA1

#7F2FA1 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.3% C 0.182 H 313.9°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#7F2FA1
RGBrgb(127, 47, 161)
HSLhsl(282, 55%, 41%)
HSVhsv(282, 71%, 63%)
CMYKcmyk(21.1%, 70.8%, 0%, 36.9%)
CIE-LABlab(36.21, 52.18, -46.48)
CIE-LCHlch(36.21, 69.88, 318.30°)
OKLaboklab(47.31% 0.1259 -0.131)
OKLCHoklch(47.31% 0.182 313.9)
XYZxyz(16.2008, 9.1188, 34.6180)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FA1 #51A12F
analogous
#462FA1 #7F2FA1 #A12F8A
triadic
#7F2FA1 #A17F2F #2FA17F
tetradic
#7F2FA1 #A1462F #51A12F #2F8AA1
square
#7F2FA1 #A1462F #51A12F #2F8AA1
split-complementary
#7F2FA1 #8AA12F #2FA146
monochromatic
#341342 #5A2172 #7F2FA1 #A145C9 #B974D6

Accessibility & contrast

On white

7.44
#7F2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7F2FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2FA1
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FA1#FFFFFF#000000##FFFFFF
##7F2FA11.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A4
Deuteranopia (green-blind)
#28579E
Tritanopia (blue-blind)
#7C4765
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f2fa1;
/* rgb */ color: rgb(127, 47, 161);
/* oklch */ color: oklch(47.3% 0.182 313.9);
Tailwind
colors: {
  custom: {
    50: '#a86fbd',
    500: '#7f2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fa1;
$custom-light: #a86fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fa1",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 282.105,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47307,
    "c": 0.18173,
    "h": 313.9
  },
  "luminance": 0.09118
}

Semantic roles & 50–950 ramp

primary
#7F2FA1
secondary
#86BE6E
accent
#DE4A76
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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