#7F4DCB#7F4DCB

#7F4DCB is a mid, vivid violet. Relative luminance 0.141; OKLCH L 54.1% C 0.187 H 298.1°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#7F4DCB
RGBrgb(127, 77, 203)
HSLhsl(264, 55%, 55%)
HSVhsv(264, 62%, 80%)
CMYKcmyk(37.4%, 62.1%, 0%, 20.4%)
CIE-LABlab(44.42, 47.41, -58.00)
CIE-LCHlch(44.42, 74.91, 309.27°)
OKLaboklab(54.12% 0.0883 -0.165)
OKLCHoklch(54.12% 0.187 298.1)
XYZxyz(22.1831, 14.1313, 58.0472)
Luminance0.1413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4DCB #99CB4D
analogous
#4D5ACB #7F4DCB #BE4DCB
triadic
#7F4DCB #CB7F4D #4DCB7F
tetradic
#7F4DCB #CB4D5A #99CB4D #4DCBBE
square
#7F4DCB #CB4D5A #99CB4D #4DCBBE
split-complementary
#7F4DCB #CBBE4D #5ACB4D
monochromatic
#46247A #6131A9 #7F4DCB #A17CD9 #C3ACE7

Accessibility & contrast

On white

5.49
#7F4DCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#7F4DCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4DCB
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4DCB#FFFFFF#000000##FFFFFF
##7F4DCB1.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#1168C8
Tritanopia (blue-blind)
#6D6985
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7f4dcb;
/* rgb */ color: rgb(127, 77, 203);
/* oklch */ color: oklch(54.1% 0.187 298.1);
Tailwind
colors: {
  custom: {
    50: '#a981dc',
    500: '#7f4dcb',
    950: '#000000',
  },
}
SCSS
$custom: #7f4dcb;
$custom-light: #a981dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4dcb",
  "rgb": {
    "r": 127,
    "g": 77,
    "b": 203
  },
  "hsl": {
    "h": 263.81,
    "s": 54.783,
    "l": 54.902
  },
  "oklch": {
    "l": 0.54124,
    "c": 0.18712,
    "h": 298.1
  },
  "luminance": 0.14132
}

Semantic roles & 50–950 ramp

primary
#7F4DCB
secondary
#BFD49F
accent
#DE4AA3
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7F4DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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