#7F4CDB#7F4CDB

#7F4CDB is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.2% C 0.207 H 295.1°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#7F4CDB
RGBrgb(127, 76, 219)
HSLhsl(261, 67%, 58%)
HSVhsv(261, 65%, 86%)
CMYKcmyk(42%, 65.3%, 0%, 14.1%)
CIE-LABlab(45.35, 52.11, -65.67)
CIE-LCHlch(45.35, 83.83, 308.43°)
OKLaboklab(55.15% 0.0879 -0.1875)
OKLCHoklch(55.15% 0.207 295.1)
XYZxyz(24.1196, 14.7948, 68.5890)
Luminance0.1479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4CDB #A8DB4C
analogous
#4C60DB #7F4CDB #C74CDB
triadic
#7F4CDB #DB7F4C #4CDB7F
tetradic
#7F4CDB #DB4C60 #A8DB4C #4CDBC7
square
#7F4CDB #DB4C60 #A8DB4C #4CDBC7
split-complementary
#7F4CDB #DBC74C #60DB4C
monochromatic
#461D90 #5F27C3 #7F4CDB #A37FE5 #C8B2EF

Accessibility & contrast

On white

5.30
#7F4CDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#7F4CDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4CDB
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4CDB#FFFFFF#000000##FFFFFF
##7F4CDB1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDF
Deuteranopia (green-blind)
#0069D8
Tritanopia (blue-blind)
#676E8D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7f4cdb;
/* rgb */ color: rgb(127, 76, 219);
/* oklch */ color: oklch(55.2% 0.207 295.1);
Tailwind
colors: {
  custom: {
    50: '#ab81e7',
    500: '#7f4cdb',
    950: '#000000',
  },
}
SCSS
$custom: #7f4cdb;
$custom-light: #ab81e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4cdb",
  "rgb": {
    "r": 127,
    "g": 76,
    "b": 219
  },
  "hsl": {
    "h": 261.399,
    "s": 66.512,
    "l": 57.843
  },
  "oklch": {
    "l": 0.55154,
    "c": 0.20713,
    "h": 295.1
  },
  "luminance": 0.14795
}

Semantic roles & 50–950 ramp

primary
#7F4CDB
secondary
#CADEA5
accent
#E93EAC
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7F4CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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