#7F4BCC#7F4BCC

#7F4BCC is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.9% C 0.191 H 298.3°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#7F4BCC
RGBrgb(127, 75, 204)
HSLhsl(264, 56%, 55%)
HSVhsv(264, 63%, 80%)
CMYKcmyk(37.7%, 63.2%, 0%, 20%)
CIE-LABlab(44.09, 48.73, -59.10)
CIE-LCHlch(44.09, 76.60, 309.51°)
OKLaboklab(53.91% 0.0905 -0.1682)
OKLCHoklch(53.91% 0.191 298.3)
XYZxyz(22.1648, 13.9035, 58.6309)
Luminance0.1390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4BCC #98CC4B
analogous
#4B58CC #7F4BCC #BF4BCC
triadic
#7F4BCC #CC7F4B #4BCC7F
tetradic
#7F4BCC #CC4B58 #98CC4B #4BCCBF
square
#7F4BCC #CC4B58 #98CC4B #4BCCBF
split-complementary
#7F4BCC #CCBF4B #58CC4B
monochromatic
#46237A #6130AA #7F4BCC #A17BDA #C3AAE7

Accessibility & contrast

On white

5.55
#7F4BCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#7F4BCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4BCC
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4BCC#FFFFFF#000000##FFFFFF
##7F4BCC1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#0367C9
Tritanopia (blue-blind)
#6D6885
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7f4bcc;
/* rgb */ color: rgb(127, 75, 204);
/* oklch */ color: oklch(53.9% 0.191 298.3);
Tailwind
colors: {
  custom: {
    50: '#a980dc',
    500: '#7f4bcc',
    950: '#000000',
  },
}
SCSS
$custom: #7f4bcc;
$custom-light: #a980dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4bcc",
  "rgb": {
    "r": 127,
    "g": 75,
    "b": 204
  },
  "hsl": {
    "h": 264.186,
    "s": 55.844,
    "l": 54.706
  },
  "oklch": {
    "l": 0.5391,
    "c": 0.19102,
    "h": 298.3
  },
  "luminance": 0.13904
}

Semantic roles & 50–950 ramp

primary
#7F4BCC
secondary
#BFD59E
accent
#DF49A2
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7F4BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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