#7F3CB7#7F3CB7

#7F3CB7 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.4% C 0.188 H 305.7°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#7F3CB7
RGBrgb(127, 60, 183)
HSLhsl(273, 51%, 48%)
HSVhsv(273, 67%, 72%)
CMYKcmyk(30.6%, 67.2%, 0%, 28.2%)
CIE-LABlab(39.85, 51.16, -53.72)
CIE-LCHlch(39.85, 74.18, 313.61°)
OKLaboklab(50.39% 0.1093 -0.1524)
OKLCHoklch(50.39% 0.188 305.7)
XYZxyz(18.9136, 11.1628, 45.9488)
Luminance0.1116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3CB7 #74B73C
analogous
#423CB7 #7F3CB7 #B73CB1
triadic
#7F3CB7 #B77F3C #3CB77F
tetradic
#7F3CB7 #B7423C #74B73C #3CB1B7
square
#7F3CB7 #B7423C #74B73C #3CB1B7
split-complementary
#7F3CB7 #B1B73C #3CB742
monochromatic
#3F1E5B #5F2D89 #7F3CB7 #9D64CC #BA92DB

Accessibility & contrast

On white

6.50
#7F3CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#7F3CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3CB7
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3CB7#FFFFFF#000000##FFFFFF
##7F3CB71.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBB
Deuteranopia (green-blind)
#185EB4
Tritanopia (blue-blind)
#755774
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7f3cb7;
/* rgb */ color: rgb(127, 60, 183);
/* oklch */ color: oklch(50.4% 0.188 305.7);
Tailwind
colors: {
  custom: {
    50: '#a876cd',
    500: '#7f3cb7',
    950: '#000000',
  },
}
SCSS
$custom: #7f3cb7;
$custom-light: #a876cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3cb7",
  "rgb": {
    "r": 127,
    "g": 60,
    "b": 183
  },
  "hsl": {
    "h": 272.683,
    "s": 50.617,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50392,
    "c": 0.1875,
    "h": 305.7
  },
  "luminance": 0.11163
}

Semantic roles & 50–950 ramp

primary
#7F3CB7
secondary
#A5C688
accent
#DA4E8E
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7F3CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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