#7F4BC0#7F4BC0

#7F4BC0 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.1% C 0.177 H 301.0°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#7F4BC0
RGBrgb(127, 75, 192)
HSLhsl(267, 48%, 52%)
HSVhsv(267, 61%, 75%)
CMYKcmyk(33.9%, 60.9%, 0%, 24.7%)
CIE-LABlab(43.29, 45.67, -53.45)
CIE-LCHlch(43.29, 70.31, 310.51°)
OKLaboklab(53.07% 0.0912 -0.1516)
OKLCHoklch(53.07% 0.177 301)
XYZxyz(20.7806, 13.3498, 51.3409)
Luminance0.1335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4BC0 #8CC04B
analogous
#4B51C0 #7F4BC0 #BA4BC0
triadic
#7F4BC0 #C07F4B #4BC07F
tetradic
#7F4BC0 #C04B51 #8CC04B #4BC0BA
square
#7F4BC0 #C04B51 #8CC04B #4BC0BA
split-complementary
#7F4BC0 #C0BA4B #51C04B
monochromatic
#44256B #613598 #7F4BC0 #9F78D0 #BFA6E0

Accessibility & contrast

On white

5.72
#7F4BC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#7F4BC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4BC0
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4BC0#FFFFFF#000000##FFFFFF
##7F4BC01.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C4
Deuteranopia (green-blind)
#2566BD
Tritanopia (blue-blind)
#72647E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7f4bc0;
/* rgb */ color: rgb(127, 75, 192);
/* oklch */ color: oklch(53.1% 0.177 301.0);
Tailwind
colors: {
  custom: {
    50: '#a880d4',
    500: '#7f4bc0',
    950: '#000000',
  },
}
SCSS
$custom: #7f4bc0;
$custom-light: #a880d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4bc0",
  "rgb": {
    "r": 127,
    "g": 75,
    "b": 192
  },
  "hsl": {
    "h": 266.667,
    "s": 48.148,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53066,
    "c": 0.17693,
    "h": 301
  },
  "luminance": 0.1335
}

Semantic roles & 50–950 ramp

primary
#7F4BC0
secondary
#B6CD9A
accent
#D8509B
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7F4BC0

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

Preview Lab → · Contrast checker → · Palette generator →

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