#7F2CAE#7F2CAE

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

Color values

HEX#7F2CAE
RGBrgb(127, 44, 174)
HSLhsl(278, 60%, 43%)
HSVhsv(278, 75%, 68%)
CMYKcmyk(27%, 74.7%, 0%, 31.8%)
CIE-LABlab(36.69, 56.22, -53.51)
CIE-LCHlch(36.69, 77.61, 316.41°)
OKLaboklab(47.93% 0.1272 -0.1516)
OKLCHoklch(47.93% 0.198 310)
XYZxyz(17.2916, 9.3698, 40.9338)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2CAE #5BAE2C
analogous
#3E2CAE #7F2CAE #AE2C9C
triadic
#7F2CAE #AE7F2C #2CAE7F
tetradic
#7F2CAE #AE3E2C #5BAE2C #2C9CAE
square
#7F2CAE #AE3E2C #5BAE2C #2C9CAE
split-complementary
#7F2CAE #9CAE2C #2CAE3E
monochromatic
#38134C #5B207D #7F2CAE #9F47D0 #B878DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F2CAE#FFFFFF#000000##FFFFFF
##7F2CAE1.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)
#0053B2
Deuteranopia (green-blind)
#0A58AB
Tritanopia (blue-blind)
#784A6B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f2cae;
/* rgb */ color: rgb(127, 44, 174);
/* oklch */ color: oklch(47.9% 0.198 310.0);
Tailwind
colors: {
  custom: {
    50: '#a96ec7',
    500: '#7f2cae',
    950: '#000000',
  },
}
SCSS
$custom: #7f2cae;
$custom-light: #a96ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2cae",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 174
  },
  "hsl": {
    "h": 278.308,
    "s": 59.633,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47933,
    "c": 0.1979,
    "h": 310
  },
  "luminance": 0.09369
}

Semantic roles & 50–950 ramp

primary
#7F2CAE
secondary
#8FC571
accent
#E3457E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2CAE

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

Preview Lab → · Contrast checker → · Palette generator →

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