#7F2FAE#7F2FAE

#7F2FAE is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.2% C 0.194 H 309.7°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#7F2FAE
RGBrgb(127, 47, 174)
HSLhsl(278, 57%, 43%)
HSVhsv(278, 73%, 68%)
CMYKcmyk(27%, 73%, 0%, 31.8%)
CIE-LABlab(37.12, 54.99, -52.81)
CIE-LCHlch(37.12, 76.24, 316.16°)
OKLaboklab(48.24% 0.1243 -0.1496)
OKLCHoklch(48.24% 0.194 309.7)
XYZxyz(17.4074, 9.6014, 40.9724)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FAE #5EAE2F
analogous
#3F2FAE #7F2FAE #AE2F9D
triadic
#7F2FAE #AE7F2F #2FAE7F
tetradic
#7F2FAE #AE3F2F #5EAE2F #2F9DAE
square
#7F2FAE #AE3F2F #5EAE2F #2F9DAE
split-complementary
#7F2FAE #9DAE2F #2FAE3F
monochromatic
#39154E #5C227E #7F2FAE #9E4CCF #B87CDC

Accessibility & contrast

On white

7.19
#7F2FAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7F2FAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2FAE
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FAE#FFFFFF#000000##FFFFFF
##7F2FAE1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B2
Deuteranopia (green-blind)
#1258AB
Tritanopia (blue-blind)
#784C6C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f2fae;
/* rgb */ color: rgb(127, 47, 174);
/* oklch */ color: oklch(48.2% 0.194 309.7);
Tailwind
colors: {
  custom: {
    50: '#a96fc7',
    500: '#7f2fae',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fae;
$custom-light: #a96fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fae",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 174
  },
  "hsl": {
    "h": 277.795,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.48238,
    "c": 0.19448,
    "h": 309.7
  },
  "luminance": 0.09601
}

Semantic roles & 50–950 ramp

primary
#7F2FAE
secondary
#92C475
accent
#E14780
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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