#7F2ACA#7F2ACA

#7F2ACA is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 50.0% C 0.227 H 302.7°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#7F2ACA
RGBrgb(127, 42, 202)
HSLhsl(272, 66%, 48%)
HSVhsv(272, 79%, 79%)
CMYKcmyk(37.1%, 79.2%, 0%, 20.8%)
CIE-LABlab(38.61, 63.20, -66.86)
CIE-LCHlch(38.61, 92.00, 313.39°)
OKLaboklab(49.96% 0.1224 -0.1909)
OKLCHoklch(49.96% 0.227 302.7)
XYZxyz(20.2385, 10.4322, 56.8130)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2ACA #75CA2A
analogous
#2F2ACA #7F2ACA #CA2AC5
triadic
#7F2ACA #CA7F2A #2ACA7F
tetradic
#7F2ACA #CA2F2A #75CA2A #2AC5CA
square
#7F2ACA #CA2F2A #75CA2A #2AC5CA
split-complementary
#7F2ACA #C5CA2A #2ACA2F
monochromatic
#3F1565 #5F1F97 #7F2ACA #9D55DC #BA88E6

Accessibility & contrast

On white

6.80
#7F2ACA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7F2ACA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2ACA
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2ACA#FFFFFF#000000##FFFFFF
##7F2ACA1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#005AC7
Tritanopia (blue-blind)
#6F567B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f2aca;
/* rgb */ color: rgb(127, 42, 202);
/* oklch */ color: oklch(50.0% 0.227 302.7);
Tailwind
colors: {
  custom: {
    50: '#ab6edb',
    500: '#7f2aca',
    950: '#000000',
  },
}
SCSS
$custom: #7f2aca;
$custom-light: #ab6edb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2aca",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 202
  },
  "hsl": {
    "h": 271.875,
    "s": 65.574,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49962,
    "c": 0.22677,
    "h": 302.7
  },
  "luminance": 0.10432
}

Semantic roles & 50–950 ramp

primary
#7F2ACA
secondary
#A5D080
accent
#E93F8F
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F2ACA

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

Preview Lab → · Contrast checker → · Palette generator →

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