#7F3DBE#7F3DBE

#7F3DBE is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.0% C 0.194 H 303.7°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7F3DBE
RGBrgb(127, 61, 190)
HSLhsl(271, 51%, 49%)
HSVhsv(271, 68%, 75%)
CMYKcmyk(33.2%, 67.9%, 0%, 25.5%)
CIE-LABlab(40.52, 52.35, -56.75)
CIE-LCHlch(40.52, 77.20, 312.69°)
OKLaboklab(51.03% 0.1074 -0.1613)
OKLCHoklch(51.03% 0.194 303.7)
XYZxyz(19.7133, 11.5673, 49.8994)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3DBE #7CBE3D
analogous
#3F3DBE #7F3DBE #BE3DBC
triadic
#7F3DBE #BE7F3D #3DBE7F
tetradic
#7F3DBE #BE3F3D #7CBE3D #3DBCBE
square
#7F3DBE #BE3F3D #7CBE3D #3DBCBE
split-complementary
#7F3DBE #BCBE3D #3DBE3F
monochromatic
#411F61 #602E90 #7F3DBE #9D69CF #BC98DE

Accessibility & contrast

On white

6.34
#7F3DBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F3DBE
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3DBE#FFFFFF#000000##FFFFFF
##7F3DBE1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC2
Deuteranopia (green-blind)
#025FBB
Tritanopia (blue-blind)
#735A79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f3dbe;
/* rgb */ color: rgb(127, 61, 190);
/* oklch */ color: oklch(51.0% 0.194 303.7);
Tailwind
colors: {
  custom: {
    50: '#a977d2',
    500: '#7f3dbe',
    950: '#000000',
  },
}
SCSS
$custom: #7f3dbe;
$custom-light: #a977d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3dbe",
  "rgb": {
    "r": 127,
    "g": 61,
    "b": 190
  },
  "hsl": {
    "h": 270.698,
    "s": 51.394,
    "l": 49.216
  },
  "oklch": {
    "l": 0.51025,
    "c": 0.19376,
    "h": 303.7
  },
  "luminance": 0.11567
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F3DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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