#7F4BCD#7F4BCD

#7F4BCD is a mid, vivid violet. Relative luminance 0.140; OKLCH L 54.0% C 0.192 H 298.1°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#7F4BCD
RGBrgb(127, 75, 205)
HSLhsl(264, 57%, 55%)
HSVhsv(264, 63%, 80%)
CMYKcmyk(38%, 63.4%, 0%, 19.6%)
CIE-LABlab(44.16, 48.99, -59.57)
CIE-LCHlch(44.16, 77.12, 309.44°)
OKLaboklab(53.98% 0.0904 -0.1696)
OKLCHoklch(53.98% 0.192 298.1)
XYZxyz(22.2851, 13.9516, 59.2646)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4BCD #99CD4B
analogous
#4B58CD #7F4BCD #C04BCD
triadic
#7F4BCD #CD7F4B #4BCD7F
tetradic
#7F4BCD #CD4B58 #99CD4B #4BCDC0
square
#7F4BCD #CD4B58 #99CD4B #4BCDC0
split-complementary
#7F4BCD #CDC04B #58CD4B
monochromatic
#46227B #6130AB #7F4BCD #A17BDA #C3ABE8

Accessibility & contrast

On white

5.54
#7F4BCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#7F4BCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4BCD
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4BCD#FFFFFF#000000##FFFFFF
##7F4BCD1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D1
Deuteranopia (green-blind)
#0067CA
Tritanopia (blue-blind)
#6D6885
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7f4bcd;
/* rgb */ color: rgb(127, 75, 205);
/* oklch */ color: oklch(54.0% 0.192 298.1);
Tailwind
colors: {
  custom: {
    50: '#a980dd',
    500: '#7f4bcd',
    950: '#000000',
  },
}
SCSS
$custom: #7f4bcd;
$custom-light: #a980dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4bcd",
  "rgb": {
    "r": 127,
    "g": 75,
    "b": 205
  },
  "hsl": {
    "h": 264,
    "s": 56.522,
    "l": 54.902
  },
  "oklch": {
    "l": 0.53982,
    "c": 0.19219,
    "h": 298.1
  },
  "luminance": 0.13952
}

Semantic roles & 50–950 ramp

primary
#7F4BCD
secondary
#BFD59F
accent
#E048A3
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7F4BCD

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

Preview Lab → · Contrast checker → · Palette generator →

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