#7F4CC2#7F4CC2

#7F4CC2 is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.3% C 0.178 H 300.4°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#7F4CC2
RGBrgb(127, 76, 194)
HSLhsl(266, 49%, 53%)
HSVhsv(266, 61%, 76%)
CMYKcmyk(34.5%, 60.8%, 0%, 23.9%)
CIE-LABlab(43.62, 45.64, -54.08)
CIE-LCHlch(43.62, 70.76, 310.16°)
OKLaboklab(53.35% 0.0899 -0.1535)
OKLCHoklch(53.35% 0.178 300.4)
XYZxyz(21.0721, 13.5758, 52.5387)
Luminance0.1358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4CC2 #8FC24C
analogous
#4C54C2 #7F4CC2 #BA4CC2
triadic
#7F4CC2 #C27F4C #4CC27F
tetradic
#7F4CC2 #C24C54 #8FC24C #4CC2BA
square
#7F4CC2 #C24C54 #8FC24C #4CC2BA
split-complementary
#7F4CC2 #C2BA4C #54C24C
monochromatic
#45266E #61359C #7F4CC2 #A07AD2 #C0A7E1

Accessibility & contrast

On white

5.65
#7F4CC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#7F4CC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4CC2
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4CC2#FFFFFF#000000##FFFFFF
##7F4CC21.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C6
Deuteranopia (green-blind)
#2366BF
Tritanopia (blue-blind)
#716580
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7f4cc2;
/* rgb */ color: rgb(127, 76, 194);
/* oklch */ color: oklch(53.3% 0.178 300.4);
Tailwind
colors: {
  custom: {
    50: '#a880d5',
    500: '#7f4cc2',
    950: '#000000',
  },
}
SCSS
$custom: #7f4cc2;
$custom-light: #a880d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4cc2",
  "rgb": {
    "r": 127,
    "g": 76,
    "b": 194
  },
  "hsl": {
    "h": 265.932,
    "s": 49.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.5335,
    "c": 0.17787,
    "h": 300.4
  },
  "luminance": 0.13576
}

Semantic roles & 50–950 ramp

primary
#7F4CC2
secondary
#B8CE9B
accent
#D94F9D
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7F4CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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