#7F3ACC#7F3ACC

#7F3ACC is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.7% C 0.212 H 300.6°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#7F3ACC
RGBrgb(127, 58, 204)
HSLhsl(268, 59%, 51%)
HSVhsv(268, 72%, 80%)
CMYKcmyk(37.7%, 71.6%, 0%, 20%)
CIE-LABlab(41.05, 57.13, -64.03)
CIE-LCHlch(41.05, 85.81, 311.74°)
OKLaboklab(51.73% 0.1082 -0.1827)
OKLCHoklch(51.73% 0.212 300.6)
XYZxyz(21.1619, 11.8976, 58.2966)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3ACC #87CC3A
analogous
#3A3ECC #7F3ACC #C83ACC
triadic
#7F3ACC #CC7F3A #3ACC7F
tetradic
#7F3ACC #CC3A3E #87CC3A #3ACCC8
square
#7F3ACC #CC3A3E #87CC3A #3ACCC8
split-complementary
#7F3ACC #CCC83A #3ECC3A
monochromatic
#441D6F #6129A0 #7F3ACC #9F6BD9 #BE9BE5

Accessibility & contrast

On white

6.21
#7F3ACC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7F3ACC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3ACC
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3ACC#FFFFFF#000000##FFFFFF
##7F3ACC1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#0060C9
Tritanopia (blue-blind)
#6E5E7F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7f3acc;
/* rgb */ color: rgb(127, 58, 204);
/* oklch */ color: oklch(51.7% 0.212 300.6);
Tailwind
colors: {
  custom: {
    50: '#aa76dd',
    500: '#7f3acc',
    950: '#000000',
  },
}
SCSS
$custom: #7f3acc;
$custom-light: #aa76dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3acc",
  "rgb": {
    "r": 127,
    "g": 58,
    "b": 204
  },
  "hsl": {
    "h": 268.356,
    "s": 58.871,
    "l": 51.373
  },
  "oklch": {
    "l": 0.5173,
    "c": 0.21233,
    "h": 300.6
  },
  "luminance": 0.11898
}

Semantic roles & 50–950 ramp

primary
#7F3ACC
secondary
#B3D191
accent
#E24698
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F3ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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