#7F4DB7#7F4DB7

#7F4DB7 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.8% C 0.163 H 303.0°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#7F4DB7
RGBrgb(127, 77, 183)
HSLhsl(268, 42%, 51%)
HSVhsv(268, 58%, 72%)
CMYKcmyk(30.6%, 57.9%, 0%, 28.2%)
CIE-LABlab(43.12, 42.32, -48.46)
CIE-LCHlch(43.12, 64.34, 311.13°)
OKLaboklab(52.76% 0.0889 -0.137)
OKLCHoklch(52.76% 0.163 303)
XYZxyz(19.9516, 13.2387, 46.2948)
Luminance0.1324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4DB7 #85B74D
analogous
#4D50B7 #7F4DB7 #B44DB7
triadic
#7F4DB7 #B77F4D #4DB77F
tetradic
#7F4DB7 #B74D50 #85B74D #4DB7B4
square
#7F4DB7 #B74D50 #85B74D #4DB7B4
split-complementary
#7F4DB7 #B7B44D #50B74D
monochromatic
#432862 #61398E #7F4DB7 #9E79C9 #BEA4DA

Accessibility & contrast

On white

5.76
#7F4DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F4DB7
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4DB7#FFFFFF#000000##FFFFFF
##7F4DB71.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F65BA
Deuteranopia (green-blind)
#3466B5
Tritanopia (blue-blind)
#74627A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7f4db7;
/* rgb */ color: rgb(127, 77, 183);
/* oklch */ color: oklch(52.8% 0.163 303.0);
Tailwind
colors: {
  custom: {
    50: '#a781cd',
    500: '#7f4db7',
    950: '#000000',
  },
}
SCSS
$custom: #7f4db7;
$custom-light: #a781cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4db7",
  "rgb": {
    "r": 127,
    "g": 77,
    "b": 183
  },
  "hsl": {
    "h": 268.302,
    "s": 42.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52761,
    "c": 0.16327,
    "h": 303
  },
  "luminance": 0.13239
}

Semantic roles & 50–950 ramp

primary
#7F4DB7
secondary
#B1C798
accent
#D25697
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7F4DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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