#7F3DBD#7F3DBD

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

Color values

HEX#7F3DBD
RGBrgb(127, 61, 189)
HSLhsl(271, 51%, 49%)
HSVhsv(271, 68%, 74%)
CMYKcmyk(32.8%, 67.7%, 0%, 25.9%)
CIE-LABlab(40.45, 52.11, -56.28)
CIE-LCHlch(40.45, 76.70, 312.80°)
OKLaboklab(50.95% 0.1075 -0.1599)
OKLCHoklch(50.95% 0.193 303.9)
XYZxyz(19.6044, 11.5237, 49.3257)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3DBD #7BBD3D
analogous
#3F3DBD #7F3DBD #BD3DBB
triadic
#7F3DBD #BD7F3D #3DBD7F
tetradic
#7F3DBD #BD3F3D #7BBD3D #3DBBBD
square
#7F3DBD #BD3F3D #7BBD3D #3DBBBD
split-complementary
#7F3DBD #BBBD3D #3DBD3F
monochromatic
#411F60 #602E8F #7F3DBD #9D69CE #BB97DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F3DBD#FFFFFF#000000##FFFFFF
##7F3DBD1.006.353.306.35
#FFFFFF6.351.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC1
Deuteranopia (green-blind)
#075FBA
Tritanopia (blue-blind)
#735A78
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f3dbd;
/* rgb */ color: rgb(127, 61, 189);
/* oklch */ color: oklch(51.0% 0.193 303.9);
Tailwind
colors: {
  custom: {
    50: '#a977d2',
    500: '#7f3dbd',
    950: '#000000',
  },
}
SCSS
$custom: #7f3dbd;
$custom-light: #a977d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3dbd",
  "rgb": {
    "r": 127,
    "g": 61,
    "b": 189
  },
  "hsl": {
    "h": 270.938,
    "s": 51.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.50952,
    "c": 0.19267,
    "h": 303.9
  },
  "luminance": 0.11524
}

Semantic roles & 50–950 ramp

primary
#7F3DBD
secondary
#AAC98D
accent
#DB4D92
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F3DBD

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

Preview Lab → · Contrast checker → · Palette generator →

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