#7F2EAA#7F2EAA

#7F2EAA is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.8% C 0.192 H 311.0°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#7F2EAA
RGBrgb(127, 46, 170)
HSLhsl(279, 57%, 42%)
HSVhsv(279, 73%, 67%)
CMYKcmyk(25.3%, 72.9%, 0%, 33.3%)
CIE-LABlab(36.68, 54.53, -51.12)
CIE-LCHlch(36.68, 74.75, 316.85°)
OKLaboklab(47.84% 0.1259 -0.1446)
OKLCHoklch(47.84% 0.192 311)
XYZxyz(16.9837, 9.3687, 38.9361)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2EAA #59AA2E
analogous
#412EAA #7F2EAA #AA2E97
triadic
#7F2EAA #AA7F2E #2EAA7F
tetradic
#7F2EAA #AA412E #59AA2E #2E97AA
square
#7F2EAA #AA412E #59AA2E #2E97AA
split-complementary
#7F2EAA #97AA2E #2EAA41
monochromatic
#37144A #5B217A #7F2EAA #9F48CD #B878DA

Accessibility & contrast

On white

7.31
#7F2EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7F2EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2EAA
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2EAA#FFFFFF#000000##FFFFFF
##7F2EAA1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#1958A7
Tritanopia (blue-blind)
#794A69
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f2eaa;
/* rgb */ color: rgb(127, 46, 170);
/* oklch */ color: oklch(47.8% 0.192 311.0);
Tailwind
colors: {
  custom: {
    50: '#a86ec4',
    500: '#7f2eaa',
    950: '#000000',
  },
}
SCSS
$custom: #7f2eaa;
$custom-light: #a86ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2eaa",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 279.194,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47841,
    "c": 0.19173,
    "h": 311
  },
  "luminance": 0.09368
}

Semantic roles & 50–950 ramp

primary
#7F2EAA
secondary
#8DC371
accent
#E1477C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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