#7F2AAA#7F2AAA

#7F2AAA is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.4% C 0.196 H 311.4°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#7F2AAA
RGBrgb(127, 42, 170)
HSLhsl(280, 60%, 42%)
HSVhsv(280, 75%, 67%)
CMYKcmyk(25.3%, 75.3%, 0%, 33.3%)
CIE-LABlab(36.12, 56.14, -52.04)
CIE-LCHlch(36.12, 76.55, 317.17°)
OKLaboklab(47.44% 0.1297 -0.1473)
OKLCHoklch(47.44% 0.196 311.4)
XYZxyz(16.8347, 9.0707, 38.8864)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2AAA #55AA2A
analogous
#3F2AAA #7F2AAA #AA2A95
triadic
#7F2AAA #AA7F2A #2AAA7F
tetradic
#7F2AAA #AA3F2A #55AA2A #2A95AA
square
#7F2AAA #AA3F2A #55AA2A #2A95AA
split-complementary
#7F2AAA #95AA2A #2AAA3F
monochromatic
#361248 #5A1E79 #7F2AAA #A041D0 #B972DC

Accessibility & contrast

On white

7.46
#7F2AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7F2AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2AAA
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2AAA#FFFFFF#000000##FFFFFF
##7F2AAA1.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#1256A7
Tritanopia (blue-blind)
#794868
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f2aaa;
/* rgb */ color: rgb(127, 42, 170);
/* oklch */ color: oklch(47.4% 0.196 311.4);
Tailwind
colors: {
  custom: {
    50: '#a96dc4',
    500: '#7f2aaa',
    950: '#000000',
  },
}
SCSS
$custom: #7f2aaa;
$custom-light: #a96dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2aaa",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 279.844,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47441,
    "c": 0.19628,
    "h": 311.4
  },
  "luminance": 0.0907
}

Semantic roles & 50–950 ramp

primary
#7F2AAA
secondary
#8AC36C
accent
#E4447A
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F2AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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