#7F4ABC#7F4ABC

#7F4ABC is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.6% C 0.174 H 302.2°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#7F4ABC
RGBrgb(127, 74, 188)
HSLhsl(268, 46%, 51%)
HSVhsv(268, 61%, 74%)
CMYKcmyk(32.4%, 60.6%, 0%, 26.3%)
CIE-LABlab(42.82, 45.21, -51.86)
CIE-LCHlch(42.82, 68.80, 311.08°)
OKLaboklab(52.65% 0.0925 -0.1469)
OKLCHoklch(52.65% 0.174 302.2)
XYZxyz(20.2762, 13.0404, 49.0160)
Luminance0.1304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4ABC #87BC4A
analogous
#4A4EBC #7F4ABC #B84ABC
triadic
#7F4ABC #BC7F4A #4ABC7F
tetradic
#7F4ABC #BC4A4E #87BC4A #4ABCB8
square
#7F4ABC #BC4A4E #87BC4A #4ABCB8
split-complementary
#7F4ABC #BCB84A #4EBC4A
monochromatic
#442666 #613693 #7F4ABC #9F77CD #BEA3DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F4ABC#FFFFFF#000000##FFFFFF
##7F4ABC1.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)
#0564C0
Deuteranopia (green-blind)
#2965B9
Tritanopia (blue-blind)
#73627C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7f4abc;
/* rgb */ color: rgb(127, 74, 188);
/* oklch */ color: oklch(52.6% 0.174 302.2);
Tailwind
colors: {
  custom: {
    50: '#a87fd1',
    500: '#7f4abc',
    950: '#000000',
  },
}
SCSS
$custom: #7f4abc;
$custom-light: #a87fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4abc",
  "rgb": {
    "r": 127,
    "g": 74,
    "b": 188
  },
  "hsl": {
    "h": 267.895,
    "s": 45.968,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52646,
    "c": 0.17367,
    "h": 302.2
  },
  "luminance": 0.1304
}

Semantic roles & 50–950 ramp

primary
#7F4ABC
secondary
#B3CA98
accent
#D65299
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7F4ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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