#7F4CBB#7F4CBB

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

Color values

HEX#7F4CBB
RGBrgb(127, 76, 187)
HSLhsl(268, 45%, 52%)
HSVhsv(268, 59%, 73%)
CMYKcmyk(32.1%, 59.4%, 0%, 26.7%)
CIE-LABlab(43.17, 43.87, -50.73)
CIE-LCHlch(43.17, 67.07, 310.86°)
OKLaboklab(52.88% 0.0901 -0.1436)
OKLCHoklch(52.88% 0.17 302.1)
XYZxyz(20.3044, 13.2687, 48.4955)
Luminance0.1327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4CBB #88BB4C
analogous
#4C51BB #7F4CBB #B74CBB
triadic
#7F4CBB #BB7F4C #4CBB7F
tetradic
#7F4CBB #BB4C51 #88BB4C #4CBBB7
square
#7F4CBB #BB4C51 #88BB4C #4CBBB7
split-complementary
#7F4CBB #BBB74C #51BB4C
monochromatic
#442766 #613892 #7F4CBB #9F78CC #BEA5DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F4CBB#FFFFFF#000000##FFFFFF
##7F4CBB1.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)
#1365BF
Deuteranopia (green-blind)
#2E66B8
Tritanopia (blue-blind)
#73637C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7f4cbb;
/* rgb */ color: rgb(127, 76, 187);
/* oklch */ color: oklch(52.9% 0.170 302.1);
Tailwind
colors: {
  custom: {
    50: '#a880d0',
    500: '#7f4cbb',
    950: '#000000',
  },
}
SCSS
$custom: #7f4cbb;
$custom-light: #a880d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4cbb",
  "rgb": {
    "r": 127,
    "g": 76,
    "b": 187
  },
  "hsl": {
    "h": 267.568,
    "s": 44.939,
    "l": 51.569
  },
  "oklch": {
    "l": 0.52875,
    "c": 0.16955,
    "h": 302.1
  },
  "luminance": 0.13269
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F4CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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