#7F2AC8#7F2AC8

#7F2AC8 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.8% C 0.225 H 303.2°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#7F2AC8
RGBrgb(127, 42, 200)
HSLhsl(272, 65%, 47%)
HSVhsv(272, 79%, 78%)
CMYKcmyk(36.5%, 79%, 0%, 21.6%)
CIE-LABlab(38.44, 62.74, -65.97)
CIE-LCHlch(38.44, 91.04, 313.57°)
OKLaboklab(49.8% 0.123 -0.1882)
OKLCHoklch(49.8% 0.225 303.2)
XYZxyz(20.0032, 10.3381, 55.5740)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2AC8 #73C82A
analogous
#302AC8 #7F2AC8 #C82AC2
triadic
#7F2AC8 #C87F2A #2AC87F
tetradic
#7F2AC8 #C8302A #73C82A #2AC2C8
square
#7F2AC8 #C8302A #73C82A #2AC2C8
split-complementary
#7F2AC8 #C2C82A #2AC830
monochromatic
#3F1563 #5F1F95 #7F2AC8 #9D54DB #BA87E6

Accessibility & contrast

On white

6.85
#7F2AC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7F2AC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2AC8
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2AC8#FFFFFF#000000##FFFFFF
##7F2AC81.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CC
Deuteranopia (green-blind)
#005AC5
Tritanopia (blue-blind)
#705579
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f2ac8;
/* rgb */ color: rgb(127, 42, 200);
/* oklch */ color: oklch(49.8% 0.225 303.2);
Tailwind
colors: {
  custom: {
    50: '#ab6eda',
    500: '#7f2ac8',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ac8;
$custom-light: #ab6eda;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ac8",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 200
  },
  "hsl": {
    "h": 272.278,
    "s": 65.289,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49796,
    "c": 0.22486,
    "h": 303.2
  },
  "luminance": 0.10338
}

Semantic roles & 50–950 ramp

primary
#7F2AC8
secondary
#A4CF7F
accent
#E8408D
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F2AC8

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

Preview Lab → · Contrast checker → · Palette generator →

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