#7F2EAE#7F2EAE

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

Color values

HEX#7F2EAE
RGBrgb(127, 46, 174)
HSLhsl(278, 58%, 43%)
HSVhsv(278, 74%, 68%)
CMYKcmyk(27%, 73.6%, 0%, 31.8%)
CIE-LABlab(36.97, 55.41, -53.05)
CIE-LCHlch(36.97, 76.71, 316.25°)
OKLaboklab(48.14% 0.1252 -0.1503)
OKLCHoklch(48.14% 0.196 309.8)
XYZxyz(17.3679, 9.5224, 40.9593)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2EAE #5DAE2E
analogous
#3F2EAE #7F2EAE #AE2E9D
triadic
#7F2EAE #AE7F2E #2EAE7F
tetradic
#7F2EAE #AE3F2E #5DAE2E #2E9DAE
square
#7F2EAE #AE3F2E #5DAE2E #2E9DAE
split-complementary
#7F2EAE #9DAE2E #2EAE3F
monochromatic
#38144D #5C217E #7F2EAE #9E4ACF #B87ADC

Accessibility & contrast

On white

7.23
#7F2EAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2EAE
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2EAE#FFFFFF#000000##FFFFFF
##7F2EAE1.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f2eae;
/* rgb */ color: rgb(127, 46, 174);
/* oklch */ color: oklch(48.1% 0.196 309.8);
Tailwind
colors: {
  custom: {
    50: '#a96fc7',
    500: '#7f2eae',
    950: '#000000',
  },
}
SCSS
$custom: #7f2eae;
$custom-light: #a96fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2eae",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 174
  },
  "hsl": {
    "h": 277.969,
    "s": 58.182,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48135,
    "c": 0.19563,
    "h": 309.8
  },
  "luminance": 0.09522
}

Semantic roles & 50–950 ramp

primary
#7F2EAE
secondary
#91C474
accent
#E1467F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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