#7F4CBE#7F4CBE

#7F4CBE is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.1% C 0.173 H 301.3°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#7F4CBE
RGBrgb(127, 76, 190)
HSLhsl(267, 47%, 52%)
HSVhsv(267, 60%, 75%)
CMYKcmyk(33.2%, 60%, 0%, 25.5%)
CIE-LABlab(43.36, 44.63, -52.17)
CIE-LCHlch(43.36, 68.65, 310.55°)
OKLaboklab(53.08% 0.09 -0.1479)
OKLCHoklch(53.08% 0.173 301.3)
XYZxyz(20.6289, 13.3985, 50.2046)
Luminance0.1340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4CBE #8BBE4C
analogous
#4C52BE #7F4CBE #B84CBE
triadic
#7F4CBE #BE7F4C #4CBE7F
tetradic
#7F4CBE #BE4C52 #8BBE4C #4CBEB8
square
#7F4CBE #BE4C52 #8BBE4C #4CBEB8
split-complementary
#7F4CBE #BEB84C #52BE4C
monochromatic
#442669 #613796 #7F4CBE #9F79CE #BFA6DF

Accessibility & contrast

On white

5.71
#7F4CBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#7F4CBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4CBE
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4CBE#FFFFFF#000000##FFFFFF
##7F4CBE1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A66C2
Deuteranopia (green-blind)
#2A66BB
Tritanopia (blue-blind)
#72647E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7f4cbe;
/* rgb */ color: rgb(127, 76, 190);
/* oklch */ color: oklch(53.1% 0.173 301.3);
Tailwind
colors: {
  custom: {
    50: '#a880d2',
    500: '#7f4cbe',
    950: '#000000',
  },
}
SCSS
$custom: #7f4cbe;
$custom-light: #a880d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4cbe",
  "rgb": {
    "r": 127,
    "g": 76,
    "b": 190
  },
  "hsl": {
    "h": 266.842,
    "s": 46.721,
    "l": 52.157
  },
  "oklch": {
    "l": 0.53076,
    "c": 0.17312,
    "h": 301.3
  },
  "luminance": 0.13399
}

Semantic roles & 50–950 ramp

primary
#7F4CBE
secondary
#B6CC9A
accent
#D6519B
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7F4CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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