#7F2FA0#7F2FA0

#7F2FA0 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.2% C 0.181 H 314.2°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#7F2FA0
RGBrgb(127, 47, 160)
HSLhsl(282, 55%, 41%)
HSVhsv(282, 71%, 63%)
CMYKcmyk(20.6%, 70.6%, 0%, 37.3%)
CIE-LABlab(36.14, 51.96, -45.99)
CIE-LCHlch(36.14, 69.39, 318.49°)
OKLaboklab(47.24% 0.126 -0.1296)
OKLCHoklch(47.24% 0.181 314.2)
XYZxyz(16.1130, 9.0837, 34.1554)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FA0 #50A02F
analogous
#472FA0 #7F2FA0 #A02F88
triadic
#7F2FA0 #A07F2F #2FA07F
tetradic
#7F2FA0 #A0472F #50A02F #2F88A0
square
#7F2FA0 #A0472F #50A02F #2F88A0
split-complementary
#7F2FA0 #88A02F #2FA047
monochromatic
#341341 #592171 #7F2FA0 #A244C8 #B973D6

Accessibility & contrast

On white

7.46
#7F2FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2FA0
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FA0#FFFFFF#000000##FFFFFF
##7F2FA01.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A3
Deuteranopia (green-blind)
#29579D
Tritanopia (blue-blind)
#7C4664
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f2fa0;
/* rgb */ color: rgb(127, 47, 160);
/* oklch */ color: oklch(47.2% 0.181 314.2);
Tailwind
colors: {
  custom: {
    50: '#a86fbd',
    500: '#7f2fa0',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fa0;
$custom-light: #a86fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fa0",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 282.478,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47238,
    "c": 0.18075,
    "h": 314.2
  },
  "luminance": 0.09083
}

Semantic roles & 50–950 ramp

primary
#7F2FA0
secondary
#85BE6D
accent
#DE4A75
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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