#7F4BC7#7F4BC7

#7F4BC7 is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.6% C 0.185 H 299.4°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#7F4BC7
RGBrgb(127, 75, 199)
HSLhsl(265, 53%, 54%)
HSVhsv(265, 62%, 78%)
CMYKcmyk(36.2%, 62.3%, 0%, 22%)
CIE-LABlab(43.75, 47.45, -56.76)
CIE-LCHlch(43.75, 73.98, 309.89°)
OKLaboklab(53.55% 0.0908 -0.1614)
OKLCHoklch(53.55% 0.185 299.4)
XYZxyz(21.5747, 13.6675, 55.5232)
Luminance0.1367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4BC7 #93C74B
analogous
#4B55C7 #7F4BC7 #BD4BC7
triadic
#7F4BC7 #C77F4B #4BC77F
tetradic
#7F4BC7 #C74B55 #93C74B #4BC7BD
square
#7F4BC7 #C74B55 #93C74B #4BC7BD
split-complementary
#7F4BC7 #C7BD4B #55C74B
monochromatic
#452474 #6132A2 #7F4BC7 #A07AD6 #C1A8E4

Accessibility & contrast

On white

5.62
#7F4BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F4BC7
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4BC7#FFFFFF#000000##FFFFFF
##7F4BC71.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CB
Deuteranopia (green-blind)
#1766C4
Tritanopia (blue-blind)
#6F6682
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7f4bc7;
/* rgb */ color: rgb(127, 75, 199);
/* oklch */ color: oklch(53.6% 0.185 299.4);
Tailwind
colors: {
  custom: {
    50: '#a980d9',
    500: '#7f4bc7',
    950: '#000000',
  },
}
SCSS
$custom: #7f4bc7;
$custom-light: #a980d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4bc7",
  "rgb": {
    "r": 127,
    "g": 75,
    "b": 199
  },
  "hsl": {
    "h": 265.161,
    "s": 52.542,
    "l": 53.725
  },
  "oklch": {
    "l": 0.53553,
    "c": 0.18517,
    "h": 299.4
  },
  "luminance": 0.13668
}

Semantic roles & 50–950 ramp

primary
#7F4BC7
secondary
#BBD19C
accent
#DC4CA0
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7F4BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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