#7F3BB8#7F3BB8

#7F3BB8 is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.3% C 0.190 H 305.5°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#7F3BB8
RGBrgb(127, 59, 184)
HSLhsl(273, 51%, 48%)
HSVhsv(273, 68%, 72%)
CMYKcmyk(31%, 67.9%, 0%, 27.8%)
CIE-LABlab(39.75, 51.88, -54.47)
CIE-LCHlch(39.75, 75.22, 313.60°)
OKLaboklab(50.34% 0.1103 -0.1546)
OKLCHoklch(50.34% 0.19 305.5)
XYZxyz(18.9662, 11.1008, 46.4816)
Luminance0.1110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3BB8 #74B83B
analogous
#413BB8 #7F3BB8 #B83BB2
triadic
#7F3BB8 #B87F3B #3BB87F
tetradic
#7F3BB8 #B8413B #74B83B #3BB2B8
square
#7F3BB8 #B8413B #74B83B #3BB2B8
split-complementary
#7F3BB8 #B2B83B #3BB841
monochromatic
#3F1D5B #5F2C8A #7F3BB8 #9D63CD #BA92DC

Accessibility & contrast

On white

6.52
#7F3BB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7F3BB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3BB8
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3BB8#FFFFFF#000000##FFFFFF
##7F3BB81.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBC
Deuteranopia (green-blind)
#135EB5
Tritanopia (blue-blind)
#755775
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7f3bb8;
/* rgb */ color: rgb(127, 59, 184);
/* oklch */ color: oklch(50.3% 0.190 305.5);
Tailwind
colors: {
  custom: {
    50: '#a976ce',
    500: '#7f3bb8',
    950: '#000000',
  },
}
SCSS
$custom: #7f3bb8;
$custom-light: #a976ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3bb8",
  "rgb": {
    "r": 127,
    "g": 59,
    "b": 184
  },
  "hsl": {
    "h": 272.64,
    "s": 51.44,
    "l": 47.647
  },
  "oklch": {
    "l": 0.5034,
    "c": 0.18989,
    "h": 305.5
  },
  "luminance": 0.11101
}

Semantic roles & 50–950 ramp

primary
#7F3BB8
secondary
#A5C788
accent
#DB4D8E
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7F3BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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