#7F3BB3#7F3BB3

#7F3BB3 is a mid, vivid violet. Relative luminance 0.109; OKLCH L 50.0% C 0.185 H 306.9°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#7F3BB3
RGBrgb(127, 59, 179)
HSLhsl(274, 50%, 47%)
HSVhsv(274, 67%, 70%)
CMYKcmyk(29.1%, 67%, 0%, 29.8%)
CIE-LABlab(39.40, 50.71, -52.08)
CIE-LCHlch(39.40, 72.69, 314.23°)
OKLaboklab(49.98% 0.1108 -0.1475)
OKLCHoklch(49.98% 0.185 306.9)
XYZxyz(18.4513, 10.8948, 43.7700)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3BB3 #6FB33B
analogous
#433BB3 #7F3BB3 #B33BAB
triadic
#7F3BB3 #B37F3B #3BB37F
tetradic
#7F3BB3 #B3433B #6FB33B #3BABB3
square
#7F3BB3 #B3433B #6FB33B #3BABB3
split-complementary
#7F3BB3 #ABB33B #3BB343
monochromatic
#3E1D57 #5E2C85 #7F3BB3 #9D60CB #B98EDA

Accessibility & contrast

On white

6.61
#7F3BB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#7F3BB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3BB3
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3BB3#FFFFFF#000000##FFFFFF
##7F3BB31.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB7
Deuteranopia (green-blind)
#1E5DB0
Tritanopia (blue-blind)
#765572
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7f3bb3;
/* rgb */ color: rgb(127, 59, 179);
/* oklch */ color: oklch(50.0% 0.185 306.9);
Tailwind
colors: {
  custom: {
    50: '#a876ca',
    500: '#7f3bb3',
    950: '#000000',
  },
}
SCSS
$custom: #7f3bb3;
$custom-light: #a876ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3bb3",
  "rgb": {
    "r": 127,
    "g": 59,
    "b": 179
  },
  "hsl": {
    "h": 274,
    "s": 50.42,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49981,
    "c": 0.18454,
    "h": 306.9
  },
  "luminance": 0.10895
}

Semantic roles & 50–950 ramp

primary
#7F3BB3
secondary
#A1C585
accent
#DA4E8B
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7F3BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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