#7F2EAD#7F2EAD

#7F2EAD is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.1% C 0.195 H 310.1°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#7F2EAD
RGBrgb(127, 46, 173)
HSLhsl(278, 58%, 43%)
HSVhsv(278, 73%, 68%)
CMYKcmyk(26.6%, 73.4%, 0%, 32.2%)
CIE-LABlab(36.90, 55.19, -52.57)
CIE-LCHlch(36.90, 76.22, 316.39°)
OKLaboklab(48.06% 0.1254 -0.1489)
OKLCHoklch(48.06% 0.195 310.1)
XYZxyz(17.2707, 9.4835, 40.4478)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2EAD #5CAD2E
analogous
#402EAD #7F2EAD #AD2E9B
triadic
#7F2EAD #AD7F2E #2EAD7F
tetradic
#7F2EAD #AD402E #5CAD2E #2E9BAD
square
#7F2EAD #AD402E #5CAD2E #2E9BAD
split-complementary
#7F2EAD #9BAD2E #2EAD40
monochromatic
#38144C #5C217D #7F2EAD #9E49CF #B87ADC

Accessibility & contrast

On white

7.25
#7F2EAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#7F2EAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2EAD
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2EAD#FFFFFF#000000##FFFFFF
##7F2EAD1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B1
Deuteranopia (green-blind)
#1258AA
Tritanopia (blue-blind)
#794B6B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f2ead;
/* rgb */ color: rgb(127, 46, 173);
/* oklch */ color: oklch(48.1% 0.195 310.1);
Tailwind
colors: {
  custom: {
    50: '#a96fc6',
    500: '#7f2ead',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ead;
$custom-light: #a96fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ead",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 173
  },
  "hsl": {
    "h": 278.268,
    "s": 57.991,
    "l": 42.941
  },
  "oklch": {
    "l": 0.48061,
    "c": 0.19466,
    "h": 310.1
  },
  "luminance": 0.09483
}

Semantic roles & 50–950 ramp

primary
#7F2EAD
secondary
#90C473
accent
#E1477F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2EAD

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

Preview Lab → · Contrast checker → · Palette generator →

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