#7F4DBF#7F4DBF

#7F4DBF is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.3% C 0.173 H 300.9°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#7F4DBF
RGBrgb(127, 77, 191)
HSLhsl(266, 47%, 53%)
HSVhsv(266, 60%, 75%)
CMYKcmyk(33.5%, 59.7%, 0%, 25.1%)
CIE-LABlab(43.63, 44.34, -52.32)
CIE-LCHlch(43.63, 68.58, 310.28°)
OKLaboklab(53.29% 0.0888 -0.1483)
OKLCHoklch(53.29% 0.173 300.9)
XYZxyz(20.8080, 13.5813, 50.8053)
Luminance0.1358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4DBF #8DBF4D
analogous
#4D54BF #7F4DBF #B84DBF
triadic
#7F4DBF #BF7F4D #4DBF7F
tetradic
#7F4DBF #BF4D54 #8DBF4D #4DBFB8
square
#7F4DBF #BF4D54 #8DBF4D #4DBFB8
split-complementary
#7F4DBF #BFB84D #54BF4D
monochromatic
#45276B #613798 #7F4DBF #9F7ACF #C0A7DF

Accessibility & contrast

On white

5.65
#7F4DBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#7F4DBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4DBF
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4DBF#FFFFFF#000000##FFFFFF
##7F4DBF1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C67C3
Deuteranopia (green-blind)
#2A66BC
Tritanopia (blue-blind)
#72657F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7f4dbf;
/* rgb */ color: rgb(127, 77, 191);
/* oklch */ color: oklch(53.3% 0.173 300.9);
Tailwind
colors: {
  custom: {
    50: '#a881d3',
    500: '#7f4dbf',
    950: '#000000',
  },
}
SCSS
$custom: #7f4dbf;
$custom-light: #a881d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4dbf",
  "rgb": {
    "r": 127,
    "g": 77,
    "b": 191
  },
  "hsl": {
    "h": 266.316,
    "s": 47.107,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53293,
    "c": 0.17286,
    "h": 300.9
  },
  "luminance": 0.13581
}

Semantic roles & 50–950 ramp

primary
#7F4DBF
secondary
#B7CD9B
accent
#D7519C
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7F4DBF

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

Preview Lab → · Contrast checker → · Palette generator →

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