#7F3FBB#7F3FBB

#7F3FBB is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.1% C 0.188 H 304.2°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#7F3FBB
RGBrgb(127, 63, 187)
HSLhsl(271, 50%, 49%)
HSVhsv(271, 66%, 73%)
CMYKcmyk(32.1%, 66.3%, 0%, 26.7%)
CIE-LABlab(40.66, 50.65, -54.76)
CIE-LCHlch(40.66, 74.59, 312.77°)
OKLaboklab(51.06% 0.1055 -0.1554)
OKLCHoklch(51.06% 0.188 304.2)
XYZxyz(19.4975, 11.6550, 48.2265)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3FBB #7BBB3F
analogous
#413FBB #7F3FBB #BB3FB9
triadic
#7F3FBB #BB7F3F #3FBB7F
tetradic
#7F3FBB #BB413F #7BBB3F #3FB9BB
square
#7F3FBB #BB413F #7BBB3F #3FB9BB
split-complementary
#7F3FBB #B9BB3F #3FBB41
monochromatic
#41205F #60308D #7F3FBB #9D6ACD #BB98DC

Accessibility & contrast

On white

6.30
#7F3FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7F3FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3FBB
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3FBB#FFFFFF#000000##FFFFFF
##7F3FBB1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBF
Deuteranopia (green-blind)
#1560B8
Tritanopia (blue-blind)
#745A78
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7f3fbb;
/* rgb */ color: rgb(127, 63, 187);
/* oklch */ color: oklch(51.1% 0.188 304.2);
Tailwind
colors: {
  custom: {
    50: '#a978d0',
    500: '#7f3fbb',
    950: '#000000',
  },
}
SCSS
$custom: #7f3fbb;
$custom-light: #a978d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3fbb",
  "rgb": {
    "r": 127,
    "g": 63,
    "b": 187
  },
  "hsl": {
    "h": 270.968,
    "s": 49.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.51061,
    "c": 0.18787,
    "h": 304.2
  },
  "luminance": 0.11655
}

Semantic roles & 50–950 ramp

primary
#7F3FBB
secondary
#AAC88E
accent
#D94F92
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7F3FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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