#7F3FB3#7F3FB3

#7F3FB3 is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.5% C 0.179 H 306.4°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#7F3FB3
RGBrgb(127, 63, 179)
HSLhsl(273, 48%, 47%)
HSVhsv(273, 65%, 70%)
CMYKcmyk(29.1%, 64.8%, 0%, 29.8%)
CIE-LABlab(40.12, 48.74, -50.93)
CIE-LCHlch(40.12, 70.49, 313.74°)
OKLaboklab(50.5% 0.1062 -0.1442)
OKLCHoklch(50.5% 0.179 306.4)
XYZxyz(18.6648, 11.3219, 43.8411)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3FB3 #73B33F
analogous
#453FB3 #7F3FB3 #B33FAD
triadic
#7F3FB3 #B37F3F #3FB37F
tetradic
#7F3FB3 #B3453F #73B33F #3FADB3
square
#7F3FB3 #B3453F #73B33F #3FADB3
split-complementary
#7F3FB3 #ADB33F #3FB345
monochromatic
#3F1F58 #5F2F86 #7F3FB3 #9D66C9 #BA93D9

Accessibility & contrast

On white

6.43
#7F3FB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7F3FB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3FB3
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3FB3#FFFFFF#000000##FFFFFF
##7F3FB31.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB7
Deuteranopia (green-blind)
#245FB0
Tritanopia (blue-blind)
#765773
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f3fb3;
/* rgb */ color: rgb(127, 63, 179);
/* oklch */ color: oklch(50.5% 0.179 306.4);
Tailwind
colors: {
  custom: {
    50: '#a878ca',
    500: '#7f3fb3',
    950: '#000000',
  },
}
SCSS
$custom: #7f3fb3;
$custom-light: #a878ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3fb3",
  "rgb": {
    "r": 127,
    "g": 63,
    "b": 179
  },
  "hsl": {
    "h": 273.103,
    "s": 47.934,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50495,
    "c": 0.17908,
    "h": 306.4
  },
  "luminance": 0.11322
}

Semantic roles & 50–950 ramp

primary
#7F3FB3
secondary
#A4C489
accent
#D8508D
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7F3FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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