#7F3EA3#7F3EA3

#7F3EA3 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.3% C 0.163 H 311.5°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#7F3EA3
RGBrgb(127, 62, 163)
HSLhsl(279, 45%, 44%)
HSVhsv(279, 62%, 64%)
CMYKcmyk(22.1%, 62%, 0%, 36.1%)
CIE-LABlab(38.90, 45.53, -43.37)
CIE-LCHlch(38.90, 62.88, 316.40°)
OKLaboklab(49.29% 0.1081 -0.122)
OKLCHoklch(49.29% 0.163 311.5)
XYZxyz(17.0847, 10.6020, 35.7896)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3EA3 #62A33E
analogous
#4D3EA3 #7F3EA3 #A33E95
triadic
#7F3EA3 #A37F3E #3EA37F
tetradic
#7F3EA3 #A34D3E #62A33E #3E95A3
square
#7F3EA3 #A34D3E #62A33E #3E95A3
split-complementary
#7F3EA3 #95A33E #3EA34D
monochromatic
#3A1C4A #5C2D77 #7F3EA3 #9E5DC1 #B889D2

Accessibility & contrast

On white

6.73
#7F3EA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7F3EA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3EA3
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3EA3#FFFFFF#000000##FFFFFF
##7F3EA31.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1658A6
Deuteranopia (green-blind)
#355DA1
Tritanopia (blue-blind)
#7B516B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f3ea3;
/* rgb */ color: rgb(127, 62, 163);
/* oklch */ color: oklch(49.3% 0.163 311.5);
Tailwind
colors: {
  custom: {
    50: '#a777bf',
    500: '#7f3ea3',
    950: '#000000',
  },
}
SCSS
$custom: #7f3ea3;
$custom-light: #a777bf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3ea3",
  "rgb": {
    "r": 127,
    "g": 62,
    "b": 163
  },
  "hsl": {
    "h": 278.614,
    "s": 44.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49286,
    "c": 0.163,
    "h": 311.5
  },
  "luminance": 0.10602
}

Semantic roles & 50–950 ramp

primary
#7F3EA3
secondary
#96BD80
accent
#D55381
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #7F3EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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