#7F3EBA#7F3EBA

#7F3EBA is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.9% C 0.188 H 304.6°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#7F3EBA
RGBrgb(127, 62, 186)
HSLhsl(271, 50%, 49%)
HSVhsv(271, 67%, 73%)
CMYKcmyk(31.7%, 66.7%, 0%, 27.1%)
CIE-LABlab(40.41, 50.90, -54.57)
CIE-LCHlch(40.41, 74.63, 313.01°)
OKLaboklab(50.86% 0.1068 -0.1549)
OKLCHoklch(50.86% 0.188 304.6)
XYZxyz(19.3360, 11.5025, 47.6464)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3EBA #79BA3E
analogous
#413EBA #7F3EBA #BA3EB7
triadic
#7F3EBA #BA7F3E #3EBA7F
tetradic
#7F3EBA #BA413E #79BA3E #3EB7BA
square
#7F3EBA #BA413E #79BA3E #3EB7BA
split-complementary
#7F3EBA #B7BA3E #3EBA41
monochromatic
#401F5E #602F8C #7F3EBA #9D68CD #BB96DC

Accessibility & contrast

On white

6.36
#7F3EBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#7F3EBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3EBA
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3EBA#FFFFFF#000000##FFFFFF
##7F3EBA1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBE
Deuteranopia (green-blind)
#155FB7
Tritanopia (blue-blind)
#745977
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f3eba;
/* rgb */ color: rgb(127, 62, 186);
/* oklch */ color: oklch(50.9% 0.188 304.6);
Tailwind
colors: {
  custom: {
    50: '#a978cf',
    500: '#7f3eba',
    950: '#000000',
  },
}
SCSS
$custom: #7f3eba;
$custom-light: #a978cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3eba",
  "rgb": {
    "r": 127,
    "g": 62,
    "b": 186
  },
  "hsl": {
    "h": 271.452,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.5086,
    "c": 0.18811,
    "h": 304.6
  },
  "luminance": 0.11502
}

Semantic roles & 50–950 ramp

primary
#7F3EBA
secondary
#A8C88C
accent
#DA4E91
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7F3EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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