#7F3ACD#7F3ACD

#7F3ACD is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.8% C 0.213 H 300.4°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#7F3ACD
RGBrgb(127, 58, 205)
HSLhsl(268, 60%, 52%)
HSVhsv(268, 72%, 80%)
CMYKcmyk(38%, 71.7%, 0%, 19.6%)
CIE-LABlab(41.13, 57.37, -64.49)
CIE-LCHlch(41.13, 86.31, 311.66°)
OKLaboklab(51.81% 0.1081 -0.184)
OKLCHoklch(51.81% 0.213 300.4)
XYZxyz(21.2822, 11.9457, 58.9303)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3ACD #88CD3A
analogous
#3A3FCD #7F3ACD #C83ACD
triadic
#7F3ACD #CD7F3A #3ACD7F
tetradic
#7F3ACD #CD3A3F #88CD3A #3ACDC8
square
#7F3ACD #CD3A3F #88CD3A #3ACDC8
split-complementary
#7F3ACD #CDC83A #3FCD3A
monochromatic
#441C70 #6129A1 #7F3ACD #9F6BD9 #BE9CE6

Accessibility & contrast

On white

6.20
#7F3ACD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#7F3ACD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3ACD
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3ACD#FFFFFF#000000##FFFFFF
##7F3ACD1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D1
Deuteranopia (green-blind)
#0060CA
Tritanopia (blue-blind)
#6D5E80
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7f3acd;
/* rgb */ color: rgb(127, 58, 205);
/* oklch */ color: oklch(51.8% 0.213 300.4);
Tailwind
colors: {
  custom: {
    50: '#aa76dd',
    500: '#7f3acd',
    950: '#000000',
  },
}
SCSS
$custom: #7f3acd;
$custom-light: #aa76dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3acd",
  "rgb": {
    "r": 127,
    "g": 58,
    "b": 205
  },
  "hsl": {
    "h": 268.163,
    "s": 59.514,
    "l": 51.569
  },
  "oklch": {
    "l": 0.51809,
    "c": 0.21339,
    "h": 300.4
  },
  "luminance": 0.11946
}

Semantic roles & 50–950 ramp

primary
#7F3ACD
secondary
#B3D291
accent
#E34599
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F3ACD

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

Preview Lab → · Contrast checker → · Palette generator →

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