#7F3FB9#7F3FB9

#7F3FB9 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.9% C 0.186 H 304.7°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7F3FB9
RGBrgb(127, 63, 185)
HSLhsl(271, 49%, 49%)
HSVhsv(271, 66%, 73%)
CMYKcmyk(31.4%, 65.9%, 0%, 27.5%)
CIE-LABlab(40.52, 50.17, -53.81)
CIE-LCHlch(40.52, 73.57, 312.99°)
OKLaboklab(50.92% 0.1057 -0.1526)
OKLCHoklch(50.92% 0.186 304.7)
XYZxyz(19.2849, 11.5699, 47.1068)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3FB9 #79B93F
analogous
#423FB9 #7F3FB9 #B93FB6
triadic
#7F3FB9 #B97F3F #3FB97F
tetradic
#7F3FB9 #B9423F #79B93F #3FB6B9
square
#7F3FB9 #B9423F #79B93F #3FB6B9
split-complementary
#7F3FB9 #B6B93F #3FB942
monochromatic
#40205E #602F8B #7F3FB9 #9D69CC #BB97DC

Accessibility & contrast

On white

6.34
#7F3FB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7F3FB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3FB9
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3FB9#FFFFFF#000000##FFFFFF
##7F3FB91.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBD
Deuteranopia (green-blind)
#1A60B6
Tritanopia (blue-blind)
#745A76
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f3fb9;
/* rgb */ color: rgb(127, 63, 185);
/* oklch */ color: oklch(50.9% 0.186 304.7);
Tailwind
colors: {
  custom: {
    50: '#a878cf',
    500: '#7f3fb9',
    950: '#000000',
  },
}
SCSS
$custom: #7f3fb9;
$custom-light: #a878cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3fb9",
  "rgb": {
    "r": 127,
    "g": 63,
    "b": 185
  },
  "hsl": {
    "h": 271.475,
    "s": 49.194,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50918,
    "c": 0.18568,
    "h": 304.7
  },
  "luminance": 0.1157
}

Semantic roles & 50–950 ramp

primary
#7F3FB9
secondary
#A8C78D
accent
#D94F91
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7F3FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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