#7F2FA4#7F2FA4

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

Color values

HEX#7F2FA4
RGBrgb(127, 47, 164)
HSLhsl(281, 55%, 41%)
HSVhsv(281, 71%, 64%)
CMYKcmyk(22.6%, 71.3%, 0%, 35.7%)
CIE-LABlab(36.42, 52.82, -47.96)
CIE-LCHlch(36.42, 71.34, 317.76°)
OKLaboklab(47.52% 0.1256 -0.1354)
OKLCHoklch(47.52% 0.185 312.9)
XYZxyz(16.4686, 9.2259, 36.0280)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FA4 #54A42F
analogous
#452FA4 #7F2FA4 #A42F8F
triadic
#7F2FA4 #A47F2F #2FA47F
tetradic
#7F2FA4 #A4452F #54A42F #2F8FA4
square
#7F2FA4 #A4452F #54A42F #2F8FA4
split-complementary
#7F2FA4 #8FA42F #2FA445
monochromatic
#351445 #5A2174 #7F2FA4 #A046CA #B976D8

Accessibility & contrast

On white

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

On black

2.85
#7F2FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7F2FA4#FFFFFF#000000##FFFFFF
##7F2FA41.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A7
Deuteranopia (green-blind)
#2457A1
Tritanopia (blue-blind)
#7B4866
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f2fa4;
/* rgb */ color: rgb(127, 47, 164);
/* oklch */ color: oklch(47.5% 0.185 312.9);
Tailwind
colors: {
  custom: {
    50: '#a86fc0',
    500: '#7f2fa4',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fa4;
$custom-light: #a86fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fa4",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 281.026,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47517,
    "c": 0.18466,
    "h": 312.9
  },
  "luminance": 0.09225
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F2FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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