#7F3CB6#7F3CB6

#7F3CB6 is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.3% C 0.186 H 305.9°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#7F3CB6
RGBrgb(127, 60, 182)
HSLhsl(273, 50%, 47%)
HSVhsv(273, 67%, 71%)
CMYKcmyk(30.2%, 67%, 0%, 28.6%)
CIE-LABlab(39.78, 50.93, -53.24)
CIE-LCHlch(39.78, 73.67, 313.73°)
OKLaboklab(50.32% 0.1094 -0.1509)
OKLCHoklch(50.32% 0.186 305.9)
XYZxyz(18.8099, 11.1213, 45.4026)
Luminance0.1112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3CB6 #73B63C
analogous
#423CB6 #7F3CB6 #B63CB0
triadic
#7F3CB6 #B67F3C #3CB67F
tetradic
#7F3CB6 #B6423C #73B63C #3CB0B6
square
#7F3CB6 #B6423C #73B63C #3CB0B6
split-complementary
#7F3CB6 #B0B63C #3CB642
monochromatic
#3F1E5A #5F2D88 #7F3CB6 #9D63CC #BA91DB

Accessibility & contrast

On white

6.51
#7F3CB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F3CB6
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3CB6#FFFFFF#000000##FFFFFF
##7F3CB61.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBA
Deuteranopia (green-blind)
#1A5EB3
Tritanopia (blue-blind)
#755774
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7f3cb6;
/* rgb */ color: rgb(127, 60, 182);
/* oklch */ color: oklch(50.3% 0.186 305.9);
Tailwind
colors: {
  custom: {
    50: '#a876cd',
    500: '#7f3cb6',
    950: '#000000',
  },
}
SCSS
$custom: #7f3cb6;
$custom-light: #a876cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3cb6",
  "rgb": {
    "r": 127,
    "g": 60,
    "b": 182
  },
  "hsl": {
    "h": 272.951,
    "s": 50.413,
    "l": 47.451
  },
  "oklch": {
    "l": 0.5032,
    "c": 0.18643,
    "h": 305.9
  },
  "luminance": 0.11121
}

Semantic roles & 50–950 ramp

primary
#7F3CB6
secondary
#A4C688
accent
#DA4E8D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7F3CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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