#7F4ABB#7F4ABB

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

Color values

HEX#7F4ABB
RGBrgb(127, 74, 187)
HSLhsl(268, 45%, 51%)
HSVhsv(268, 60%, 73%)
CMYKcmyk(32.1%, 60.4%, 0%, 26.7%)
CIE-LABlab(42.76, 44.96, -51.38)
CIE-LCHlch(42.76, 68.27, 311.18°)
OKLaboklab(52.58% 0.0926 -0.1455)
OKLCHoklch(52.58% 0.172 302.5)
XYZxyz(20.1687, 12.9974, 48.4503)
Luminance0.1300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4ABB #86BB4A
analogous
#4A4DBB #7F4ABB #B84ABB
triadic
#7F4ABB #BB7F4A #4ABB7F
tetradic
#7F4ABB #BB4A4D #86BB4A #4ABBB8
square
#7F4ABB #BB4A4D #86BB4A #4ABBB8
split-complementary
#7F4ABB #BBB84A #4DBB4A
monochromatic
#432665 #613791 #7F4ABB #9E76CC #BEA3DC

Accessibility & contrast

On white

5.83
#7F4ABB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#7F4ABB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4ABB
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4ABB#FFFFFF#000000##FFFFFF
##7F4ABB1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0964BF
Deuteranopia (green-blind)
#2A65B8
Tritanopia (blue-blind)
#73617B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7f4abb;
/* rgb */ color: rgb(127, 74, 187);
/* oklch */ color: oklch(52.6% 0.172 302.5);
Tailwind
colors: {
  custom: {
    50: '#a87fd0',
    500: '#7f4abb',
    950: '#000000',
  },
}
SCSS
$custom: #7f4abb;
$custom-light: #a87fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4abb",
  "rgb": {
    "r": 127,
    "g": 74,
    "b": 187
  },
  "hsl": {
    "h": 268.142,
    "s": 45.382,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52578,
    "c": 0.17249,
    "h": 302.5
  },
  "luminance": 0.12997
}

Semantic roles & 50–950 ramp

primary
#7F4ABB
secondary
#B2C997
accent
#D55398
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7F4ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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