#7F3FB5#7F3FB5

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

Color values

HEX#7F3FB5
RGBrgb(127, 63, 181)
HSLhsl(273, 48%, 48%)
HSVhsv(273, 65%, 71%)
CMYKcmyk(29.8%, 65.2%, 0%, 29%)
CIE-LABlab(40.25, 49.21, -51.89)
CIE-LCHlch(40.25, 71.52, 313.48°)
OKLaboklab(50.64% 0.1061 -0.147)
OKLCHoklch(50.64% 0.181 305.8)
XYZxyz(18.8686, 11.4034, 44.9142)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3FB5 #75B53F
analogous
#443FB5 #7F3FB5 #B53FB0
triadic
#7F3FB5 #B57F3F #3FB57F
tetradic
#7F3FB5 #B5443F #75B53F #3FB0B5
square
#7F3FB5 #B5443F #75B53F #3FB0B5
split-complementary
#7F3FB5 #B0B53F #3FB544
monochromatic
#3F1F5A #5F2F88 #7F3FB5 #9D67CA #BA94DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F3FB5#FFFFFF#000000##FFFFFF
##7F3FB51.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)
#005DB9
Deuteranopia (green-blind)
#215FB2
Tritanopia (blue-blind)
#765874
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f3fb5;
/* rgb */ color: rgb(127, 63, 181);
/* oklch */ color: oklch(50.6% 0.181 305.8);
Tailwind
colors: {
  custom: {
    50: '#a878cc',
    500: '#7f3fb5',
    950: '#000000',
  },
}
SCSS
$custom: #7f3fb5;
$custom-light: #a878cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3fb5",
  "rgb": {
    "r": 127,
    "g": 63,
    "b": 181
  },
  "hsl": {
    "h": 272.542,
    "s": 48.361,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50635,
    "c": 0.18128,
    "h": 305.8
  },
  "luminance": 0.11403
}

Semantic roles & 50–950 ramp

primary
#7F3FB5
secondary
#A5C58A
accent
#D8508E
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7F3FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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