#7F4BD9#7F4BD9

#7F4BD9 is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 54.9% C 0.206 H 295.6°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#7F4BD9
RGBrgb(127, 75, 217)
HSLhsl(262, 65%, 57%)
HSVhsv(262, 65%, 85%)
CMYKcmyk(41.5%, 65.4%, 0%, 14.9%)
CIE-LABlab(45.02, 52.10, -65.07)
CIE-LCHlch(45.02, 83.36, 308.68°)
OKLaboklab(54.87% 0.0892 -0.1858)
OKLCHoklch(54.87% 0.206 295.6)
XYZxyz(23.7896, 14.5534, 67.1879)
Luminance0.1455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4BD9 #A5D94B
analogous
#4B5ED9 #7F4BD9 #C64BD9
triadic
#7F4BD9 #D97F4B #4BD97F
tetradic
#7F4BD9 #D94B5E #A5D94B #4BD9C6
square
#7F4BD9 #D94B5E #A5D94B #4BD9C6
split-complementary
#7F4BD9 #D9C64B #5ED94B
monochromatic
#461E8C #5F28BF #7F4BD9 #A37EE4 #C7B0EE

Accessibility & contrast

On white

5.37
#7F4BD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#7F4BD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4BD9
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4BD9#FFFFFF#000000##FFFFFF
##7F4BD91.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDD
Deuteranopia (green-blind)
#0068D6
Tritanopia (blue-blind)
#676C8C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7f4bd9;
/* rgb */ color: rgb(127, 75, 217);
/* oklch */ color: oklch(54.9% 0.206 295.6);
Tailwind
colors: {
  custom: {
    50: '#ab80e6',
    500: '#7f4bd9',
    950: '#000000',
  },
}
SCSS
$custom: #7f4bd9;
$custom-light: #ab80e6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4bd9",
  "rgb": {
    "r": 127,
    "g": 75,
    "b": 217
  },
  "hsl": {
    "h": 261.972,
    "s": 65.138,
    "l": 57.255
  },
  "oklch": {
    "l": 0.54866,
    "c": 0.20608,
    "h": 295.6
  },
  "luminance": 0.14554
}

Semantic roles & 50–950 ramp

primary
#7F4BD9
secondary
#C8DDA3
accent
#E840AA
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7F4BD9

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

Preview Lab → · Contrast checker → · Palette generator →

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