#7F3BC2#7F3BC2

#7F3BC2 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.1% C 0.201 H 302.9°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#7F3BC2
RGBrgb(127, 59, 194)
HSLhsl(270, 53%, 50%)
HSVhsv(270, 70%, 76%)
CMYKcmyk(34.5%, 69.6%, 0%, 23.9%)
CIE-LABlab(40.47, 54.26, -59.17)
CIE-LCHlch(40.47, 80.28, 312.52°)
OKLaboklab(51.08% 0.109 -0.1684)
OKLCHoklch(51.08% 0.201 302.9)
XYZxyz(20.0517, 11.5350, 52.1986)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3BC2 #7EC23B
analogous
#3B3BC2 #7F3BC2 #C23BC2
triadic
#7F3BC2 #C27F3B #3BC27F
tetradic
#7F3BC2 #C23B3B #7EC23B #3BC2C2
square
#7F3BC2 #C23B3B #7EC23B #3BC2C2
split-complementary
#7F3BC2 #C2C23B #3BC23B
monochromatic
#421E64 #602D93 #7F3BC2 #9D69D1 #BC98E0

Accessibility & contrast

On white

6.35
#7F3BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F3BC2
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3BC2#FFFFFF#000000##FFFFFF
##7F3BC21.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC6
Deuteranopia (green-blind)
#005FBF
Tritanopia (blue-blind)
#715B7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f3bc2;
/* rgb */ color: rgb(127, 59, 194);
/* oklch */ color: oklch(51.1% 0.201 302.9);
Tailwind
colors: {
  custom: {
    50: '#a976d5',
    500: '#7f3bc2',
    950: '#000000',
  },
}
SCSS
$custom: #7f3bc2;
$custom-light: #a976d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3bc2",
  "rgb": {
    "r": 127,
    "g": 59,
    "b": 194
  },
  "hsl": {
    "h": 270.222,
    "s": 53.36,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51079,
    "c": 0.20055,
    "h": 302.9
  },
  "luminance": 0.11535
}

Semantic roles & 50–950 ramp

primary
#7F3BC2
secondary
#ACCB8E
accent
#DD4B93
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F3BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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