#7F2AC4#7F2AC4

#7F2AC4 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.5% C 0.221 H 304.1°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#7F2AC4
RGBrgb(127, 42, 196)
HSLhsl(273, 65%, 47%)
HSVhsv(273, 79%, 77%)
CMYKcmyk(35.2%, 78.6%, 0%, 23.1%)
CIE-LABlab(38.12, 61.85, -64.16)
CIE-LCHlch(38.12, 89.12, 313.95°)
OKLaboklab(49.47% 0.1241 -0.1829)
OKLCHoklch(49.47% 0.221 304.1)
XYZxyz(19.5419, 10.1535, 53.1442)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2AC4 #6FC42A
analogous
#322AC4 #7F2AC4 #C42ABC
triadic
#7F2AC4 #C47F2A #2AC47F
tetradic
#7F2AC4 #C4322A #6FC42A #2ABCC4
square
#7F2AC4 #C4322A #6FC42A #2ABCC4
split-complementary
#7F2AC4 #BCC42A #2AC432
monochromatic
#3E145F #5E1F92 #7F2AC4 #9D51DA #B984E5

Accessibility & contrast

On white

6.93
#7F2AC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7F2AC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2AC4
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2AC4#FFFFFF#000000##FFFFFF
##7F2AC41.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C8
Deuteranopia (green-blind)
#005AC1
Tritanopia (blue-blind)
#715377
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f2ac4;
/* rgb */ color: rgb(127, 42, 196);
/* oklch */ color: oklch(49.5% 0.221 304.1);
Tailwind
colors: {
  custom: {
    50: '#aa6ed7',
    500: '#7f2ac4',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ac4;
$custom-light: #aa6ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ac4",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 196
  },
  "hsl": {
    "h": 273.117,
    "s": 64.706,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49468,
    "c": 0.22104,
    "h": 304.1
  },
  "luminance": 0.10153
}

Semantic roles & 50–950 ramp

primary
#7F2AC4
secondary
#A1CE7C
accent
#E8408B
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F2AC4

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

Preview Lab → · Contrast checker → · Palette generator →

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