#7F3AD2#7F3AD2

#7F3AD2 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.2% C 0.219 H 299.3°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#7F3AD2
RGBrgb(127, 58, 210)
HSLhsl(267, 63%, 53%)
HSVhsv(267, 72%, 82%)
CMYKcmyk(39.5%, 72.4%, 0%, 17.6%)
CIE-LABlab(41.52, 58.59, -66.74)
CIE-LCHlch(41.52, 88.81, 311.28°)
OKLaboklab(52.21% 0.1071 -0.1906)
OKLCHoklch(52.21% 0.219 299.3)
XYZxyz(21.8954, 12.1910, 62.1598)
Luminance0.1219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3AD2 #8DD23A
analogous
#3A41D2 #7F3AD2 #CB3AD2
triadic
#7F3AD2 #D27F3A #3AD27F
tetradic
#7F3AD2 #D23A41 #8DD23A #3AD2CB
square
#7F3AD2 #D23A41 #8DD23A #3AD2CB
split-complementary
#7F3AD2 #D2CB3A #41D23A
monochromatic
#451B77 #6126A8 #7F3AD2 #9F6CDD #C09EE9

Accessibility & contrast

On white

6.11
#7F3AD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#7F3AD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3AD2
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3AD2#FFFFFF#000000##FFFFFF
##7F3AD21.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D6
Deuteranopia (green-blind)
#0061CF
Tritanopia (blue-blind)
#6B6083
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7f3ad2;
/* rgb */ color: rgb(127, 58, 210);
/* oklch */ color: oklch(52.2% 0.219 299.3);
Tailwind
colors: {
  custom: {
    50: '#ab76e1',
    500: '#7f3ad2',
    950: '#000000',
  },
}
SCSS
$custom: #7f3ad2;
$custom-light: #ab76e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3ad2",
  "rgb": {
    "r": 127,
    "g": 58,
    "b": 210
  },
  "hsl": {
    "h": 267.237,
    "s": 62.81,
    "l": 52.549
  },
  "oklch": {
    "l": 0.52205,
    "c": 0.21864,
    "h": 299.3
  },
  "luminance": 0.12191
}

Semantic roles & 50–950 ramp

primary
#7F3AD2
secondary
#B7D593
accent
#E6429B
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F3AD2

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

Preview Lab → · Contrast checker → · Palette generator →

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