#7F2AAC#7F2AAC

#7F2AAC is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.6% C 0.198 H 310.8°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#7F2AAC
RGBrgb(127, 42, 172)
HSLhsl(279, 61%, 42%)
HSVhsv(279, 76%, 67%)
CMYKcmyk(26.2%, 75.6%, 0%, 32.5%)
CIE-LABlab(36.27, 56.57, -53.00)
CIE-LCHlch(36.27, 77.52, 316.87°)
OKLaboklab(47.59% 0.1294 -0.1501)
OKLCHoklch(47.59% 0.198 310.8)
XYZxyz(17.0253, 9.1469, 39.8904)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2AAC #57AC2A
analogous
#3E2AAC #7F2AAC #AC2A98
triadic
#7F2AAC #AC7F2A #2AAC7F
tetradic
#7F2AAC #AC3E2A #57AC2A #2A98AC
square
#7F2AAC #AC3E2A #57AC2A #2A98AC
split-complementary
#7F2AAC #98AC2A #2AAC3E
monochromatic
#36124A #5B1E7B #7F2AAC #A042D1 #B873DD

Accessibility & contrast

On white

7.42
#7F2AAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7F2AAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2AAC
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2AAC#FFFFFF#000000##FFFFFF
##7F2AAC1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#0C57A9
Tritanopia (blue-blind)
#794969
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f2aac;
/* rgb */ color: rgb(127, 42, 172);
/* oklch */ color: oklch(47.6% 0.198 310.8);
Tailwind
colors: {
  custom: {
    50: '#a96dc5',
    500: '#7f2aac',
    950: '#000000',
  },
}
SCSS
$custom: #7f2aac;
$custom-light: #a96dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2aac",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 172
  },
  "hsl": {
    "h": 279.231,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4759,
    "c": 0.19819,
    "h": 310.8
  },
  "luminance": 0.09147
}

Semantic roles & 50–950 ramp

primary
#7F2AAC
secondary
#8CC46D
accent
#E4447B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F2AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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