#7F3AC9#7F3AC9

#7F3AC9 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.5% C 0.209 H 301.3°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#7F3AC9
RGBrgb(127, 58, 201)
HSLhsl(269, 57%, 51%)
HSVhsv(269, 71%, 79%)
CMYKcmyk(36.8%, 71.1%, 0%, 21.2%)
CIE-LABlab(40.82, 56.40, -62.67)
CIE-LCHlch(40.82, 84.31, 311.99°)
OKLaboklab(51.5% 0.1088 -0.1786)
OKLCHoklch(51.5% 0.209 301.3)
XYZxyz(20.8055, 11.7551, 56.4199)
Luminance0.1176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3AC9 #84C93A
analogous
#3A3CC9 #7F3AC9 #C63AC9
triadic
#7F3AC9 #C97F3A #3AC97F
tetradic
#7F3AC9 #C93A3C #84C93A #3AC9C6
square
#7F3AC9 #C93A3C #84C93A #3AC9C6
split-complementary
#7F3AC9 #C9C63A #3CC93A
monochromatic
#431D6B #612B9B #7F3AC9 #9E6AD6 #BD9AE3

Accessibility & contrast

On white

6.27
#7F3AC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7F3AC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3AC9
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3AC9#FFFFFF#000000##FFFFFF
##7F3AC91.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCD
Deuteranopia (green-blind)
#005FC6
Tritanopia (blue-blind)
#6F5D7E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7f3ac9;
/* rgb */ color: rgb(127, 58, 201);
/* oklch */ color: oklch(51.5% 0.209 301.3);
Tailwind
colors: {
  custom: {
    50: '#aa76da',
    500: '#7f3ac9',
    950: '#000000',
  },
}
SCSS
$custom: #7f3ac9;
$custom-light: #aa76da;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3ac9",
  "rgb": {
    "r": 127,
    "g": 58,
    "b": 201
  },
  "hsl": {
    "h": 268.951,
    "s": 56.972,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51497,
    "c": 0.20917,
    "h": 301.3
  },
  "luminance": 0.11755
}

Semantic roles & 50–950 ramp

primary
#7F3AC9
secondary
#B1CF90
accent
#E04897
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F3AC9

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

Preview Lab → · Contrast checker → · Palette generator →

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