#7F2FA3#7F2FA3

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

Color values

HEX#7F2FA3
RGBrgb(127, 47, 163)
HSLhsl(281, 55%, 41%)
HSVhsv(281, 71%, 64%)
CMYKcmyk(22.1%, 71.2%, 0%, 36.1%)
CIE-LABlab(36.35, 52.60, -47.47)
CIE-LCHlch(36.35, 70.85, 317.94°)
OKLaboklab(47.45% 0.1257 -0.1339)
OKLCHoklch(47.45% 0.184 313.2)
XYZxyz(16.3786, 9.1899, 35.5543)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FA3 #53A32F
analogous
#452FA3 #7F2FA3 #A32F8D
triadic
#7F2FA3 #A37F2F #2FA37F
tetradic
#7F2FA3 #A3452F #53A32F #2F8DA3
square
#7F2FA3 #A3452F #53A32F #2F8DA3
split-complementary
#7F2FA3 #8DA32F #2FA345
monochromatic
#351444 #5A2173 #7F2FA3 #A146CA #B975D7

Accessibility & contrast

On white

7.40
#7F2FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2FA3
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FA3#FFFFFF#000000##FFFFFF
##7F2FA31.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#2557A0
Tritanopia (blue-blind)
#7B4766
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f2fa3;
/* rgb */ color: rgb(127, 47, 163);
/* oklch */ color: oklch(47.4% 0.184 313.2);
Tailwind
colors: {
  custom: {
    50: '#a86fbf',
    500: '#7f2fa3',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fa3;
$custom-light: #a86fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fa3",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 281.379,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47447,
    "c": 0.18369,
    "h": 313.2
  },
  "luminance": 0.09189
}

Semantic roles & 50–950 ramp

primary
#7F2FA3
secondary
#88BF6F
accent
#DF4978
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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