#7F3CBD#7F3CBD

#7F3CBD is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.8% C 0.194 H 304.1°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#7F3CBD
RGBrgb(127, 60, 189)
HSLhsl(271, 52%, 49%)
HSVhsv(271, 68%, 74%)
CMYKcmyk(32.8%, 68.3%, 0%, 25.9%)
CIE-LABlab(40.28, 52.59, -56.56)
CIE-LCHlch(40.28, 77.23, 312.92°)
OKLaboklab(50.83% 0.1086 -0.1607)
OKLCHoklch(50.83% 0.194 304.1)
XYZxyz(19.5515, 11.4179, 49.3081)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3CBD #7ABD3C
analogous
#3F3CBD #7F3CBD #BD3CBB
triadic
#7F3CBD #BD7F3C #3CBD7F
tetradic
#7F3CBD #BD3F3C #7ABD3C #3CBBBD
square
#7F3CBD #BD3F3C #7ABD3C #3CBBBD
split-complementary
#7F3CBD #BBBD3C #3CBD3F
monochromatic
#411F60 #602D8F #7F3CBD #9D67CF #BB96DE

Accessibility & contrast

On white

6.40
#7F3CBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#7F3CBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3CBD
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3CBD#FFFFFF#000000##FFFFFF
##7F3CBD1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC1
Deuteranopia (green-blind)
#035FBA
Tritanopia (blue-blind)
#735978
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f3cbd;
/* rgb */ color: rgb(127, 60, 189);
/* oklch */ color: oklch(50.8% 0.194 304.1);
Tailwind
colors: {
  custom: {
    50: '#a977d2',
    500: '#7f3cbd',
    950: '#000000',
  },
}
SCSS
$custom: #7f3cbd;
$custom-light: #a977d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3cbd",
  "rgb": {
    "r": 127,
    "g": 60,
    "b": 189
  },
  "hsl": {
    "h": 271.163,
    "s": 51.807,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50828,
    "c": 0.19395,
    "h": 304.1
  },
  "luminance": 0.11418
}

Semantic roles & 50–950 ramp

primary
#7F3CBD
secondary
#A9C98C
accent
#DB4D91
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F3CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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