#7F3BB5#7F3BB5

#7F3BB5 is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.1% C 0.187 H 306.3°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#7F3BB5
RGBrgb(127, 59, 181)
HSLhsl(273, 51%, 47%)
HSVhsv(273, 67%, 71%)
CMYKcmyk(29.8%, 67.4%, 0%, 29%)
CIE-LABlab(39.54, 51.17, -53.04)
CIE-LCHlch(39.54, 73.70, 313.97°)
OKLaboklab(50.12% 0.1106 -0.1504)
OKLCHoklch(50.12% 0.187 306.3)
XYZxyz(18.6551, 10.9763, 44.8430)
Luminance0.1098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3BB5 #71B53B
analogous
#423BB5 #7F3BB5 #B53BAE
triadic
#7F3BB5 #B57F3B #3BB57F
tetradic
#7F3BB5 #B5423B #71B53B #3BAEB5
square
#7F3BB5 #B5423B #71B53B #3BAEB5
split-complementary
#7F3BB5 #AEB53B #3BB542
monochromatic
#3E1D59 #5F2C87 #7F3BB5 #9D62CC #BA90DB

Accessibility & contrast

On white

6.57
#7F3BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#7F3BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3BB5
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3BB5#FFFFFF#000000##FFFFFF
##7F3BB51.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB9
Deuteranopia (green-blind)
#1A5EB2
Tritanopia (blue-blind)
#765673
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7f3bb5;
/* rgb */ color: rgb(127, 59, 181);
/* oklch */ color: oklch(50.1% 0.187 306.3);
Tailwind
colors: {
  custom: {
    50: '#a876cc',
    500: '#7f3bb5',
    950: '#000000',
  },
}
SCSS
$custom: #7f3bb5;
$custom-light: #a876cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3bb5",
  "rgb": {
    "r": 127,
    "g": 59,
    "b": 181
  },
  "hsl": {
    "h": 273.443,
    "s": 50.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.50123,
    "c": 0.18667,
    "h": 306.3
  },
  "luminance": 0.10976
}

Semantic roles & 50–950 ramp

primary
#7F3BB5
secondary
#A2C686
accent
#DA4D8C
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7F3BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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