#7F4EBD#7F4EBD

#7F4EBD is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.3% C 0.169 H 301.2°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#7F4EBD
RGBrgb(127, 78, 189)
HSLhsl(266, 46%, 52%)
HSVhsv(266, 59%, 74%)
CMYKcmyk(32.8%, 58.7%, 0%, 25.9%)
CIE-LABlab(43.70, 43.28, -51.03)
CIE-LCHlch(43.70, 66.91, 310.31°)
OKLaboklab(53.31% 0.0876 -0.1445)
OKLCHoklch(53.31% 0.169 301.2)
XYZxyz(20.6599, 13.6348, 49.6776)
Luminance0.1363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4EBD #8CBD4E
analogous
#4E55BD #7F4EBD #B64EBD
triadic
#7F4EBD #BD7F4E #4EBD7F
tetradic
#7F4EBD #BD4E55 #8CBD4E #4EBDB6
square
#7F4EBD #BD4E55 #8CBD4E #4EBDB6
split-complementary
#7F4EBD #BDB64E #55BD4E
monochromatic
#442769 #613896 #7F4EBD #9F7BCE #BFA7DE

Accessibility & contrast

On white

5.63
#7F4EBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#7F4EBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4EBD
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4EBD#FFFFFF#000000##FFFFFF
##7F4EBD1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1667C1
Deuteranopia (green-blind)
#2E67BA
Tritanopia (blue-blind)
#72657E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7f4ebd;
/* rgb */ color: rgb(127, 78, 189);
/* oklch */ color: oklch(53.3% 0.169 301.2);
Tailwind
colors: {
  custom: {
    50: '#a882d1',
    500: '#7f4ebd',
    950: '#000000',
  },
}
SCSS
$custom: #7f4ebd;
$custom-light: #a882d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4ebd",
  "rgb": {
    "r": 127,
    "g": 78,
    "b": 189
  },
  "hsl": {
    "h": 266.486,
    "s": 45.679,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53309,
    "c": 0.16899,
    "h": 301.2
  },
  "luminance": 0.13635
}

Semantic roles & 50–950 ramp

primary
#7F4EBD
secondary
#B6CC9B
accent
#D5529C
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7F4EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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