#7F3BC5#7F3BC5

#7F3BC5 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.3% C 0.204 H 302.2°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#7F3BC5
RGBrgb(127, 59, 197)
HSLhsl(270, 54%, 50%)
HSVhsv(270, 70%, 77%)
CMYKcmyk(35.5%, 70.1%, 0%, 22.7%)
CIE-LABlab(40.69, 54.98, -60.56)
CIE-LCHlch(40.69, 81.79, 312.23°)
OKLaboklab(51.31% 0.1085 -0.1725)
OKLCHoklch(51.31% 0.204 302.2)
XYZxyz(20.3920, 11.6711, 53.9909)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3BC5 #81C53B
analogous
#3B3CC5 #7F3BC5 #C43BC5
triadic
#7F3BC5 #C57F3B #3BC57F
tetradic
#7F3BC5 #C53B3C #81C53B #3BC5C4
square
#7F3BC5 #C53B3C #81C53B #3BC5C4
split-complementary
#7F3BC5 #C5C43B #3CC53B
monochromatic
#421F67 #612C96 #7F3BC5 #9E6AD3 #BD99E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F3BC5#FFFFFF#000000##FFFFFF
##7F3BC51.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)
#005FC9
Deuteranopia (green-blind)
#005FC2
Tritanopia (blue-blind)
#705C7C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7f3bc5;
/* rgb */ color: rgb(127, 59, 197);
/* oklch */ color: oklch(51.3% 0.204 302.2);
Tailwind
colors: {
  custom: {
    50: '#aa76d7',
    500: '#7f3bc5',
    950: '#000000',
  },
}
SCSS
$custom: #7f3bc5;
$custom-light: #aa76d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3bc5",
  "rgb": {
    "r": 127,
    "g": 59,
    "b": 197
  },
  "hsl": {
    "h": 269.565,
    "s": 54.331,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51306,
    "c": 0.20375,
    "h": 302.2
  },
  "luminance": 0.11671
}

Semantic roles & 50–950 ramp

primary
#7F3BC5
secondary
#AECD8F
accent
#DE4A95
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #7F3BC5

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

Preview Lab → · Contrast checker → · Palette generator →

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