#7F4EA2#7F4EA2

#7F4EA2 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.6% C 0.136 H 309.3°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#7F4EA2
RGBrgb(127, 78, 162)
HSLhsl(275, 35%, 47%)
HSVhsv(275, 52%, 64%)
CMYKcmyk(21.6%, 51.9%, 0%, 36.5%)
CIE-LABlab(42.11, 36.65, -37.67)
CIE-LCHlch(42.11, 52.56, 314.22°)
OKLaboklab(51.62% 0.0864 -0.1054)
OKLCHoklch(51.62% 0.136 309.3)
XYZxyz(17.9971, 12.5697, 35.6535)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4EA2 #71A24E
analogous
#554EA2 #7F4EA2 #A24E9B
triadic
#7F4EA2 #A27F4E #4EA27F
tetradic
#7F4EA2 #A2554E #71A24E #4E9BA2
square
#7F4EA2 #A2554E #71A24E #4E9BA2
split-complementary
#7F4EA2 #9BA24E #4EA255
monochromatic
#3E264F #5F3A79 #7F4EA2 #9D72BB #BA9BCF

Accessibility & contrast

On white

5.98
#7F4EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7F4EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4EA2
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4EA2#FFFFFF#000000##FFFFFF
##7F4EA21.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3761A5
Deuteranopia (green-blind)
#4664A0
Tritanopia (blue-blind)
#7A5C70
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7f4ea2;
/* rgb */ color: rgb(127, 78, 162);
/* oklch */ color: oklch(51.6% 0.136 309.3);
Tailwind
colors: {
  custom: {
    50: '#a681be',
    500: '#7f4ea2',
    950: '#000000',
  },
}
SCSS
$custom: #7f4ea2;
$custom-light: #a681be;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4ea2",
  "rgb": {
    "r": 127,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 275,
    "s": 35,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51619,
    "c": 0.1363,
    "h": 309.3
  },
  "luminance": 0.12569
}

Semantic roles & 50–950 ramp

primary
#7F4EA2
secondary
#A2BC90
accent
#CB5D8B
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #7F4EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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