#7F4EAF#7F4EAF

#7F4EAF is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.4% C 0.152 H 305.1°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#7F4EAF
RGBrgb(127, 78, 175)
HSLhsl(270, 38%, 50%)
HSVhsv(270, 55%, 69%)
CMYKcmyk(27.4%, 55.4%, 0%, 31.4%)
CIE-LABlab(42.85, 39.79, -44.19)
CIE-LCHlch(42.85, 59.47, 312.00°)
OKLaboklab(52.41% 0.0873 -0.1245)
OKLCHoklch(52.41% 0.152 305.1)
XYZxyz(19.2130, 13.0561, 42.0570)
Luminance0.1306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4EAF #7EAF4E
analogous
#4E4EAF #7F4EAF #AF4EAF
triadic
#7F4EAF #AF7F4E #4EAF7F
tetradic
#7F4EAF #AF4E4E #7EAF4E #4EAFAF
square
#7F4EAF #AF4E4E #7EAF4E #4EAFAF
split-complementary
#7F4EAF #AFAF4E #4EAF4E
monochromatic
#42285A #603B85 #7F4EAF #9D78C3 #BCA2D6

Accessibility & contrast

On white

5.82
#7F4EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#7F4EAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4EAF
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4EAF#FFFFFF#000000##FFFFFF
##7F4EAF1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C64B2
Deuteranopia (green-blind)
#3C65AD
Tritanopia (blue-blind)
#776077
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7f4eaf;
/* rgb */ color: rgb(127, 78, 175);
/* oklch */ color: oklch(52.4% 0.152 305.1);
Tailwind
colors: {
  custom: {
    50: '#a781c7',
    500: '#7f4eaf',
    950: '#000000',
  },
}
SCSS
$custom: #7f4eaf;
$custom-light: #a781c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4eaf",
  "rgb": {
    "r": 127,
    "g": 78,
    "b": 175
  },
  "hsl": {
    "h": 270.309,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.52405,
    "c": 0.15206,
    "h": 305.1
  },
  "luminance": 0.13056
}

Semantic roles & 50–950 ramp

primary
#7F4EAF
secondary
#ACC396
accent
#CE5A93
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7F4EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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