#7F3FAC#7F3FAC

#7F3FAC is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.0% C 0.171 H 308.5°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#7F3FAC
RGBrgb(127, 63, 172)
HSLhsl(275, 46%, 46%)
HSVhsv(275, 63%, 67%)
CMYKcmyk(26.2%, 63.4%, 0%, 32.5%)
CIE-LABlab(39.66, 47.09, -47.52)
CIE-LCHlch(39.66, 66.91, 314.74°)
OKLaboklab(50.02% 0.1066 -0.1342)
OKLCHoklch(50.02% 0.171 308.5)
XYZxyz(17.9748, 11.0459, 40.2069)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3FAC #6CAC3F
analogous
#483FAC #7F3FAC #AC3FA2
triadic
#7F3FAC #AC7F3F #3FAC7F
tetradic
#7F3FAC #AC483F #6CAC3F #3FA2AC
square
#7F3FAC #AC483F #6CAC3F #3FA2AC
split-complementary
#7F3FAC #A2AC3F #3FAC48
monochromatic
#3D1E52 #5E2F7F #7F3FAC #9D63C6 #B98FD6

Accessibility & contrast

On white

6.54
#7F3FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#7F3FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3FAC
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3FAC#FFFFFF#000000##FFFFFF
##7F3FAC1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BAF
Deuteranopia (green-blind)
#2D5EA9
Tritanopia (blue-blind)
#785570
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7f3fac;
/* rgb */ color: rgb(127, 63, 172);
/* oklch */ color: oklch(50.0% 0.171 308.5);
Tailwind
colors: {
  custom: {
    50: '#a878c5',
    500: '#7f3fac',
    950: '#000000',
  },
}
SCSS
$custom: #7f3fac;
$custom-light: #a878c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3fac",
  "rgb": {
    "r": 127,
    "g": 63,
    "b": 172
  },
  "hsl": {
    "h": 275.229,
    "s": 46.383,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50016,
    "c": 0.17138,
    "h": 308.5
  },
  "luminance": 0.11046
}

Semantic roles & 50–950 ramp

primary
#7F3FAC
secondary
#9EC186
accent
#D65288
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7F3FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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