#7F4BC1#7F4BC1

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

Color values

HEX#7F4BC1
RGBrgb(127, 75, 193)
HSLhsl(266, 49%, 53%)
HSVhsv(266, 61%, 76%)
CMYKcmyk(34.2%, 61.1%, 0%, 24.3%)
CIE-LABlab(43.35, 45.93, -53.93)
CIE-LCHlch(43.35, 70.83, 310.42°)
OKLaboklab(53.13% 0.0912 -0.153)
OKLCHoklch(53.13% 0.178 300.8)
XYZxyz(20.8918, 13.3943, 51.9264)
Luminance0.1339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4BC1 #8DC14B
analogous
#4B52C1 #7F4BC1 #BA4BC1
triadic
#7F4BC1 #C17F4B #4BC17F
tetradic
#7F4BC1 #C14B52 #8DC14B #4BC1BA
square
#7F4BC1 #C14B52 #8DC14B #4BC1BA
split-complementary
#7F4BC1 #C1BA4B #52C14B
monochromatic
#45256C #61359A #7F4BC1 #9F79D1 #C0A6E0

Accessibility & contrast

On white

5.71
#7F4BC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#7F4BC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4BC1
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4BC1#FFFFFF#000000##FFFFFF
##7F4BC11.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C5
Deuteranopia (green-blind)
#2366BE
Tritanopia (blue-blind)
#71647F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7f4bc1;
/* rgb */ color: rgb(127, 75, 193);
/* oklch */ color: oklch(53.1% 0.178 300.8);
Tailwind
colors: {
  custom: {
    50: '#a880d4',
    500: '#7f4bc1',
    950: '#000000',
  },
}
SCSS
$custom: #7f4bc1;
$custom-light: #a880d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4bc1",
  "rgb": {
    "r": 127,
    "g": 75,
    "b": 193
  },
  "hsl": {
    "h": 266.441,
    "s": 48.76,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53134,
    "c": 0.17811,
    "h": 300.8
  },
  "luminance": 0.13394
}

Semantic roles & 50–950 ramp

primary
#7F4BC1
secondary
#B7CE9A
accent
#D84F9C
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7F4BC1

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

Preview Lab → · Contrast checker → · Palette generator →

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