#7F4BBE#7F4BBE

#7F4BBE is a mid, vivid violet. Relative luminance 0.133; OKLCH L 52.9% C 0.175 H 301.5°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#7F4BBE
RGBrgb(127, 75, 190)
HSLhsl(267, 47%, 52%)
HSVhsv(267, 61%, 75%)
CMYKcmyk(33.2%, 60.5%, 0%, 25.5%)
CIE-LABlab(43.16, 45.17, -52.50)
CIE-LCHlch(43.16, 69.25, 310.71°)
OKLaboklab(52.93% 0.0913 -0.1488)
OKLCHoklch(52.93% 0.175 301.5)
XYZxyz(20.5605, 13.2618, 50.1818)
Luminance0.1326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4BBE #8ABE4B
analogous
#4B51BE #7F4BBE #B84BBE
triadic
#7F4BBE #BE7F4B #4BBE7F
tetradic
#7F4BBE #BE4B51 #8ABE4B #4BBEB8
square
#7F4BBE #BE4B51 #8ABE4B #4BBEB8
split-complementary
#7F4BBE #BEB84B #51BE4B
monochromatic
#442669 #613696 #7F4BBE #9F78CE #BFA5DE

Accessibility & contrast

On white

5.75
#7F4BBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#7F4BBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4BBE
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4BBE#FFFFFF#000000##FFFFFF
##7F4BBE1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0365C2
Deuteranopia (green-blind)
#2865BB
Tritanopia (blue-blind)
#72637D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7f4bbe;
/* rgb */ color: rgb(127, 75, 190);
/* oklch */ color: oklch(52.9% 0.175 301.5);
Tailwind
colors: {
  custom: {
    50: '#a880d2',
    500: '#7f4bbe',
    950: '#000000',
  },
}
SCSS
$custom: #7f4bbe;
$custom-light: #a880d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4bbe",
  "rgb": {
    "r": 127,
    "g": 75,
    "b": 190
  },
  "hsl": {
    "h": 267.13,
    "s": 46.939,
    "l": 51.961
  },
  "oklch": {
    "l": 0.52929,
    "c": 0.17457,
    "h": 301.5
  },
  "luminance": 0.13262
}

Semantic roles & 50–950 ramp

primary
#7F4BBE
secondary
#B5CC99
accent
#D7519A
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7F4BBE

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

Preview Lab → · Contrast checker → · Palette generator →

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