#7F3AC8#7F3AC8

#7F3AC8 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.4% C 0.208 H 301.6°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#7F3AC8
RGBrgb(127, 58, 200)
HSLhsl(269, 56%, 51%)
HSVhsv(269, 71%, 78%)
CMYKcmyk(36.5%, 71%, 0%, 21.6%)
CIE-LABlab(40.75, 56.16, -62.21)
CIE-LCHlch(40.75, 83.81, 312.08°)
OKLaboklab(51.42% 0.109 -0.1773)
OKLCHoklch(51.42% 0.208 301.6)
XYZxyz(20.6883, 11.7082, 55.8023)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3AC8 #83C83A
analogous
#3A3CC8 #7F3AC8 #C63AC8
triadic
#7F3AC8 #C87F3A #3AC87F
tetradic
#7F3AC8 #C83A3C #83C83A #3AC8C6
square
#7F3AC8 #C83A3C #83C83A #3AC8C6
split-complementary
#7F3AC8 #C8C63A #3CC83A
monochromatic
#431E6A #612B9A #7F3AC8 #9E6AD5 #BD9AE3

Accessibility & contrast

On white

6.28
#7F3AC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7F3AC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3AC8
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3AC8#FFFFFF#000000##FFFFFF
##7F3AC81.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#005FC5
Tritanopia (blue-blind)
#6F5C7D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7f3ac8;
/* rgb */ color: rgb(127, 58, 200);
/* oklch */ color: oklch(51.4% 0.208 301.6);
Tailwind
colors: {
  custom: {
    50: '#aa76da',
    500: '#7f3ac8',
    950: '#000000',
  },
}
SCSS
$custom: #7f3ac8;
$custom-light: #aa76da;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3ac8",
  "rgb": {
    "r": 127,
    "g": 58,
    "b": 200
  },
  "hsl": {
    "h": 269.155,
    "s": 56.349,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51419,
    "c": 0.20812,
    "h": 301.6
  },
  "luminance": 0.11708
}

Semantic roles & 50–950 ramp

primary
#7F3AC8
secondary
#B0CE8F
accent
#E04896
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F3AC8

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

Preview Lab → · Contrast checker → · Palette generator →

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