#7F4BC2#7F4BC2

#7F4BC2 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.2% C 0.179 H 300.5°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#7F4BC2
RGBrgb(127, 75, 194)
HSLhsl(266, 49%, 53%)
HSVhsv(266, 61%, 76%)
CMYKcmyk(34.5%, 61.3%, 0%, 23.9%)
CIE-LABlab(43.42, 46.18, -54.40)
CIE-LCHlch(43.42, 71.36, 310.33°)
OKLaboklab(53.2% 0.0911 -0.1544)
OKLCHoklch(53.2% 0.179 300.5)
XYZxyz(21.0037, 13.4391, 52.5159)
Luminance0.1344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4BC2 #8EC24B
analogous
#4B53C2 #7F4BC2 #BA4BC2
triadic
#7F4BC2 #C27F4B #4BC27F
tetradic
#7F4BC2 #C24B53 #8EC24B #4BC2BA
square
#7F4BC2 #C24B53 #8EC24B #4BC2BA
split-complementary
#7F4BC2 #C2BA4B #53C24B
monochromatic
#45256D #61359B #7F4BC2 #A079D1 #C0A6E1

Accessibility & contrast

On white

5.69
#7F4BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#7F4BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4BC2
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4BC2#FFFFFF#000000##FFFFFF
##7F4BC21.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#2166BF
Tritanopia (blue-blind)
#71647F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7f4bc2;
/* rgb */ color: rgb(127, 75, 194);
/* oklch */ color: oklch(53.2% 0.179 300.5);
Tailwind
colors: {
  custom: {
    50: '#a880d5',
    500: '#7f4bc2',
    950: '#000000',
  },
}
SCSS
$custom: #7f4bc2;
$custom-light: #a880d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4bc2",
  "rgb": {
    "r": 127,
    "g": 75,
    "b": 194
  },
  "hsl": {
    "h": 266.218,
    "s": 49.378,
    "l": 52.745
  },
  "oklch": {
    "l": 0.53204,
    "c": 0.17929,
    "h": 300.5
  },
  "luminance": 0.13439
}

Semantic roles & 50–950 ramp

primary
#7F4BC2
secondary
#B8CE9B
accent
#D94F9D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7F4BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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