#7F3EBB#7F3EBB

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

Color values

HEX#7F3EBB
RGBrgb(127, 62, 187)
HSLhsl(271, 50%, 49%)
HSVhsv(271, 67%, 73%)
CMYKcmyk(32.1%, 66.8%, 0%, 26.7%)
CIE-LABlab(40.48, 51.14, -55.05)
CIE-LCHlch(40.48, 75.14, 312.89°)
OKLaboklab(50.93% 0.1067 -0.1563)
OKLCHoklch(50.93% 0.189 304.3)
XYZxyz(19.4426, 11.5452, 48.2082)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3EBB #7ABB3E
analogous
#413EBB #7F3EBB #BB3EB9
triadic
#7F3EBB #BB7F3E #3EBB7F
tetradic
#7F3EBB #BB413E #7ABB3E #3EB9BB
square
#7F3EBB #BB413E #7ABB3E #3EB9BB
split-complementary
#7F3EBB #B9BB3E #3EBB41
monochromatic
#41205F #602F8D #7F3EBB #9D69CD #BB97DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F3EBB#FFFFFF#000000##FFFFFF
##7F3EBB1.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)
#005EBF
Deuteranopia (green-blind)
#125FB8
Tritanopia (blue-blind)
#745A77
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f3ebb;
/* rgb */ color: rgb(127, 62, 187);
/* oklch */ color: oklch(50.9% 0.189 304.3);
Tailwind
colors: {
  custom: {
    50: '#a978d0',
    500: '#7f3ebb',
    950: '#000000',
  },
}
SCSS
$custom: #7f3ebb;
$custom-light: #a978d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3ebb",
  "rgb": {
    "r": 127,
    "g": 62,
    "b": 187
  },
  "hsl": {
    "h": 271.2,
    "s": 50.201,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50933,
    "c": 0.18919,
    "h": 304.3
  },
  "luminance": 0.11545
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F3EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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