#7F4BBB#7F4BBB

#7F4BBB is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.7% C 0.171 H 302.3°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#7F4BBB
RGBrgb(127, 75, 187)
HSLhsl(268, 45%, 51%)
HSVhsv(268, 60%, 73%)
CMYKcmyk(32.1%, 59.9%, 0%, 26.7%)
CIE-LABlab(42.96, 44.42, -51.06)
CIE-LCHlch(42.96, 67.67, 311.02°)
OKLaboklab(52.73% 0.0913 -0.1446)
OKLCHoklch(52.73% 0.171 302.3)
XYZxyz(20.2360, 13.1320, 48.4727)
Luminance0.1313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4BBB #87BB4B
analogous
#4B4FBB #7F4BBB #B74BBB
triadic
#7F4BBB #BB7F4B #4BBB7F
tetradic
#7F4BBB #BB4B4F #87BB4B #4BBBB7
square
#7F4BBB #BB4B4F #87BB4B #4BBBB7
split-complementary
#7F4BBB #BBB74B #4FBB4B
monochromatic
#442665 #613792 #7F4BBB #9F77CC #BEA4DD

Accessibility & contrast

On white

5.79
#7F4BBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#7F4BBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4BBB
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4BBB#FFFFFF#000000##FFFFFF
##7F4BBB1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E65BF
Deuteranopia (green-blind)
#2C65B8
Tritanopia (blue-blind)
#73627C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7f4bbb;
/* rgb */ color: rgb(127, 75, 187);
/* oklch */ color: oklch(52.7% 0.171 302.3);
Tailwind
colors: {
  custom: {
    50: '#a880d0',
    500: '#7f4bbb',
    950: '#000000',
  },
}
SCSS
$custom: #7f4bbb;
$custom-light: #a880d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4bbb",
  "rgb": {
    "r": 127,
    "g": 75,
    "b": 187
  },
  "hsl": {
    "h": 267.857,
    "s": 45.161,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52726,
    "c": 0.17102,
    "h": 302.3
  },
  "luminance": 0.13132
}

Semantic roles & 50–950 ramp

primary
#7F4BBB
secondary
#B3CA98
accent
#D55399
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7F4BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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