#7F3EA2#7F3EA2

#7F3EA2 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.2% C 0.162 H 311.9°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#7F3EA2
RGBrgb(127, 62, 162)
HSLhsl(279, 45%, 44%)
HSVhsv(279, 62%, 64%)
CMYKcmyk(21.6%, 61.7%, 0%, 36.5%)
CIE-LABlab(38.84, 45.31, -42.87)
CIE-LCHlch(38.84, 62.37, 316.58°)
OKLaboklab(49.22% 0.1081 -0.1205)
OKLCHoklch(49.22% 0.162 311.9)
XYZxyz(16.9954, 10.5663, 35.3196)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3EA2 #61A23E
analogous
#4D3EA2 #7F3EA2 #A23E93
triadic
#7F3EA2 #A27F3E #3EA27F
tetradic
#7F3EA2 #A24D3E #61A23E #3E93A2
square
#7F3EA2 #A24D3E #61A23E #3E93A2
split-complementary
#7F3EA2 #93A23E #3EA24D
monochromatic
#3A1C49 #5C2D76 #7F3EA2 #9E5CC1 #B889D2

Accessibility & contrast

On white

6.75
#7F3EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#7F3EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3EA2
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3EA2#FFFFFF#000000##FFFFFF
##7F3EA21.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1858A5
Deuteranopia (green-blind)
#365DA0
Tritanopia (blue-blind)
#7B516A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f3ea2;
/* rgb */ color: rgb(127, 62, 162);
/* oklch */ color: oklch(49.2% 0.162 311.9);
Tailwind
colors: {
  custom: {
    50: '#a777be',
    500: '#7f3ea2',
    950: '#000000',
  },
}
SCSS
$custom: #7f3ea2;
$custom-light: #a777be;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3ea2",
  "rgb": {
    "r": 127,
    "g": 62,
    "b": 162
  },
  "hsl": {
    "h": 279,
    "s": 44.643,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49221,
    "c": 0.16191,
    "h": 311.9
  },
  "luminance": 0.10566
}

Semantic roles & 50–950 ramp

primary
#7F3EA2
secondary
#95BC80
accent
#D45381
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #7F3EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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