#7F2FA9#7F2FA9

#7F2FA9 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.9% C 0.190 H 311.2°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#7F2FA9
RGBrgb(127, 47, 169)
HSLhsl(279, 56%, 42%)
HSVhsv(279, 72%, 66%)
CMYKcmyk(24.9%, 72.2%, 0%, 33.7%)
CIE-LABlab(36.76, 53.90, -50.40)
CIE-LCHlch(36.76, 73.79, 316.92°)
OKLaboklab(47.87% 0.125 -0.1425)
OKLCHoklch(47.87% 0.19 311.2)
XYZxyz(16.9290, 9.4100, 38.4530)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FA9 #59A92F
analogous
#422FA9 #7F2FA9 #A92F96
triadic
#7F2FA9 #A97F2F #2FA97F
tetradic
#7F2FA9 #A9422F #59A92F #2F96A9
square
#7F2FA9 #A9422F #59A92F #2F96A9
split-complementary
#7F2FA9 #96A92F #2FA942
monochromatic
#371449 #5B2279 #7F2FA9 #9F49CC #B879DA

Accessibility & contrast

On white

7.29
#7F2FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7F2FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2FA9
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FA9#FFFFFF#000000##FFFFFF
##7F2FA91.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AC
Deuteranopia (green-blind)
#1D58A6
Tritanopia (blue-blind)
#7A4A69
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f2fa9;
/* rgb */ color: rgb(127, 47, 169);
/* oklch */ color: oklch(47.9% 0.190 311.2);
Tailwind
colors: {
  custom: {
    50: '#a86fc3',
    500: '#7f2fa9',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fa9;
$custom-light: #a86fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fa9",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 279.344,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47874,
    "c": 0.18956,
    "h": 311.2
  },
  "luminance": 0.0941
}

Semantic roles & 50–950 ramp

primary
#7F2FA9
secondary
#8DC272
accent
#E0487C
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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