#7F4CC0#7F4CC0

#7F4CC0 is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.2% C 0.175 H 300.8°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#7F4CC0
RGBrgb(127, 76, 192)
HSLhsl(266, 48%, 53%)
HSVhsv(266, 60%, 75%)
CMYKcmyk(33.9%, 60.4%, 0%, 24.7%)
CIE-LABlab(43.49, 45.13, -53.13)
CIE-LCHlch(43.49, 69.71, 310.35°)
OKLaboklab(53.21% 0.09 -0.1507)
OKLCHoklch(53.21% 0.176 300.8)
XYZxyz(20.8490, 13.4866, 51.3637)
Luminance0.1349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4CC0 #8DC04C
analogous
#4C53C0 #7F4CC0 #B94CC0
triadic
#7F4CC0 #C07F4C #4CC07F
tetradic
#7F4CC0 #C04C53 #8DC04C #4CC0B9
square
#7F4CC0 #C04C53 #8DC04C #4CC0B9
split-complementary
#7F4CC0 #C0B94C #53C04C
monochromatic
#45266C #613699 #7F4CC0 #9F79D0 #C0A7E0

Accessibility & contrast

On white

5.68
#7F4CC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#7F4CC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4CC0
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4CC0#FFFFFF#000000##FFFFFF
##7F4CC01.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0166C4
Deuteranopia (green-blind)
#2766BD
Tritanopia (blue-blind)
#71647F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7f4cc0;
/* rgb */ color: rgb(127, 76, 192);
/* oklch */ color: oklch(53.2% 0.175 300.8);
Tailwind
colors: {
  custom: {
    50: '#a880d4',
    500: '#7f4cc0',
    950: '#000000',
  },
}
SCSS
$custom: #7f4cc0;
$custom-light: #a880d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4cc0",
  "rgb": {
    "r": 127,
    "g": 76,
    "b": 192
  },
  "hsl": {
    "h": 266.379,
    "s": 47.934,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53212,
    "c": 0.1755,
    "h": 300.8
  },
  "luminance": 0.13487
}

Semantic roles & 50–950 ramp

primary
#7F4CC0
secondary
#B7CD9B
accent
#D8509C
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7F4CC0

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

Preview Lab → · Contrast checker → · Palette generator →

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