#7F3CB5#7F3CB5

#7F3CB5 is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.2% C 0.185 H 306.2°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#7F3CB5
RGBrgb(127, 60, 181)
HSLhsl(273, 50%, 47%)
HSVhsv(273, 67%, 71%)
CMYKcmyk(29.8%, 66.9%, 0%, 29%)
CIE-LABlab(39.72, 50.69, -52.76)
CIE-LCHlch(39.72, 73.17, 313.85°)
OKLaboklab(50.25% 0.1095 -0.1495)
OKLCHoklch(50.25% 0.185 306.2)
XYZxyz(18.7069, 11.0801, 44.8603)
Luminance0.1108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3CB5 #72B53C
analogous
#433CB5 #7F3CB5 #B53CAF
triadic
#7F3CB5 #B57F3C #3CB57F
tetradic
#7F3CB5 #B5433C #72B53C #3CAFB5
square
#7F3CB5 #B5433C #72B53C #3CAFB5
split-complementary
#7F3CB5 #AFB53C #3CB543
monochromatic
#3E1E59 #5F2D87 #7F3CB5 #9D63CB #BA91DB

Accessibility & contrast

On white

6.53
#7F3CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7F3CB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3CB5
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3CB5#FFFFFF#000000##FFFFFF
##7F3CB51.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f3cb5;
/* rgb */ color: rgb(127, 60, 181);
/* oklch */ color: oklch(50.2% 0.185 306.2);
Tailwind
colors: {
  custom: {
    50: '#a876cc',
    500: '#7f3cb5',
    950: '#000000',
  },
}
SCSS
$custom: #7f3cb5;
$custom-light: #a876cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3cb5",
  "rgb": {
    "r": 127,
    "g": 60,
    "b": 181
  },
  "hsl": {
    "h": 273.223,
    "s": 50.207,
    "l": 47.255
  },
  "oklch": {
    "l": 0.50249,
    "c": 0.18535,
    "h": 306.2
  },
  "luminance": 0.1108
}

Semantic roles & 50–950 ramp

primary
#7F3CB5
secondary
#A3C687
accent
#DA4E8C
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7F3CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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