#7F3BAD#7F3BAD

#7F3BAD is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.6% C 0.178 H 308.7°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#7F3BAD
RGBrgb(127, 59, 173)
HSLhsl(276, 49%, 45%)
HSVhsv(276, 66%, 68%)
CMYKcmyk(26.6%, 65.9%, 0%, 32.2%)
CIE-LABlab(39.00, 49.32, -49.18)
CIE-LCHlch(39.00, 69.65, 315.08°)
OKLaboklab(49.56% 0.1114 -0.139)
OKLCHoklch(49.56% 0.178 308.7)
XYZxyz(17.8577, 10.6574, 40.6434)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3BAD #69AD3B
analogous
#463BAD #7F3BAD #AD3BA2
triadic
#7F3BAD #AD7F3B #3BAD7F
tetradic
#7F3BAD #AD463B #69AD3B #3BA2AD
square
#7F3BAD #AD463B #69AD3B #3BA2AD
split-complementary
#7F3BAD #A2AD3B #3BAD46
monochromatic
#3C1C52 #5D2B7F #7F3BAD #9D5DC8 #B98BD7

Accessibility & contrast

On white

6.71
#7F3BAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7F3BAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3BAD
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3BAD#FFFFFF#000000##FFFFFF
##7F3BAD1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B0
Deuteranopia (green-blind)
#275DAA
Tritanopia (blue-blind)
#78536F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f3bad;
/* rgb */ color: rgb(127, 59, 173);
/* oklch */ color: oklch(49.6% 0.178 308.7);
Tailwind
colors: {
  custom: {
    50: '#a876c6',
    500: '#7f3bad',
    950: '#000000',
  },
}
SCSS
$custom: #7f3bad;
$custom-light: #a876c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3bad",
  "rgb": {
    "r": 127,
    "g": 59,
    "b": 173
  },
  "hsl": {
    "h": 275.789,
    "s": 49.138,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4956,
    "c": 0.17812,
    "h": 308.7
  },
  "luminance": 0.10657
}

Semantic roles & 50–950 ramp

primary
#7F3BAD
secondary
#9CC282
accent
#D94F87
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7F3BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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