#7F2FA6#7F2FA6

#7F2FA6 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.7% C 0.187 H 312.2°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#7F2FA6
RGBrgb(127, 47, 166)
HSLhsl(280, 56%, 42%)
HSVhsv(280, 72%, 65%)
CMYKcmyk(23.5%, 71.7%, 0%, 34.9%)
CIE-LABlab(36.55, 53.25, -48.94)
CIE-LCHlch(36.55, 72.32, 317.41°)
OKLaboklab(47.66% 0.1254 -0.1382)
OKLCHoklch(47.66% 0.187 312.2)
XYZxyz(16.6506, 9.2987, 36.9867)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FA6 #56A62F
analogous
#432FA6 #7F2FA6 #A62F92
triadic
#7F2FA6 #A67F2F #2FA67F
tetradic
#7F2FA6 #A6432F #56A62F #2F92A6
square
#7F2FA6 #A6432F #56A62F #2F92A6
split-complementary
#7F2FA6 #92A62F #2FA643
monochromatic
#361447 #5B2176 #7F2FA6 #A047CB #B977D8

Accessibility & contrast

On white

7.34
#7F2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7F2FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2FA6
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FA6#FFFFFF#000000##FFFFFF
##7F2FA61.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A9
Deuteranopia (green-blind)
#2158A3
Tritanopia (blue-blind)
#7A4967
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f2fa6;
/* rgb */ color: rgb(127, 47, 166);
/* oklch */ color: oklch(47.7% 0.187 312.2);
Tailwind
colors: {
  custom: {
    50: '#a86fc1',
    500: '#7f2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fa6;
$custom-light: #a86fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fa6",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 280.336,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47659,
    "c": 0.18662,
    "h": 312.2
  },
  "luminance": 0.09298
}

Semantic roles & 50–950 ramp

primary
#7F2FA6
secondary
#8BC170
accent
#DF497A
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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