#7F2CAC#7F2CAC

#7F2CAC is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.8% C 0.196 H 310.6°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#7F2CAC
RGBrgb(127, 44, 172)
HSLhsl(279, 59%, 42%)
HSVhsv(279, 74%, 67%)
CMYKcmyk(26.2%, 74.4%, 0%, 32.5%)
CIE-LABlab(36.54, 55.78, -52.55)
CIE-LCHlch(36.54, 76.64, 316.71°)
OKLaboklab(47.79% 0.1275 -0.1488)
OKLCHoklch(47.79% 0.196 310.6)
XYZxyz(17.0980, 9.2923, 39.9146)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2CAC #59AC2C
analogous
#3F2CAC #7F2CAC #AC2C99
triadic
#7F2CAC #AC7F2C #2CAC7F
tetradic
#7F2CAC #AC3F2C #59AC2C #2C99AC
square
#7F2CAC #AC3F2C #59AC2C #2C99AC
split-complementary
#7F2CAC #99AC2C #2CAC3F
monochromatic
#37134B #5B207B #7F2CAC #9F46D0 #B876DC

Accessibility & contrast

On white

7.35
#7F2CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7F2CAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2CAC
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2CAC#FFFFFF#000000##FFFFFF
##7F2CAC1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#1157A9
Tritanopia (blue-blind)
#794A6A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f2cac;
/* rgb */ color: rgb(127, 44, 172);
/* oklch */ color: oklch(47.8% 0.196 310.6);
Tailwind
colors: {
  custom: {
    50: '#a96ec5',
    500: '#7f2cac',
    950: '#000000',
  },
}
SCSS
$custom: #7f2cac;
$custom-light: #a96ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2cac",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 172
  },
  "hsl": {
    "h": 278.906,
    "s": 59.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47785,
    "c": 0.19598,
    "h": 310.6
  },
  "luminance": 0.09292
}

Semantic roles & 50–950 ramp

primary
#7F2CAC
secondary
#8DC470
accent
#E2457D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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