#7F4FB2#7F4FB2

#7F4FB2 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 52.8% C 0.154 H 304.0°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#7F4FB2
RGBrgb(127, 79, 178)
HSLhsl(269, 39%, 50%)
HSVhsv(269, 56%, 70%)
CMYKcmyk(28.7%, 55.6%, 0%, 30.2%)
CIE-LABlab(43.24, 39.97, -45.33)
CIE-LCHlch(43.24, 60.44, 311.40°)
OKLaboklab(52.75% 0.0861 -0.1278)
OKLCHoklch(52.75% 0.154 304)
XYZxyz(19.5825, 13.3184, 43.6499)
Luminance0.1332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4FB2 #82B24F
analogous
#4F50B2 #7F4FB2 #B04FB2
triadic
#7F4FB2 #B27F4F #4FB27F
tetradic
#7F4FB2 #B24F50 #82B24F #4FB2B0
square
#7F4FB2 #B24F50 #82B24F #4FB2B0
split-complementary
#7F4FB2 #B2B04F #50B24F
monochromatic
#43295E #613C88 #7F4FB2 #9E7AC5 #BDA4D7

Accessibility & contrast

On white

5.73
#7F4FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#7F4FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4FB2
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4FB2#FFFFFF#000000##FFFFFF
##7F4FB21.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A65B5
Deuteranopia (green-blind)
#3B66B0
Tritanopia (blue-blind)
#766279
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7f4fb2;
/* rgb */ color: rgb(127, 79, 178);
/* oklch */ color: oklch(52.8% 0.154 304.0);
Tailwind
colors: {
  custom: {
    50: '#a782c9',
    500: '#7f4fb2',
    950: '#000000',
  },
}
SCSS
$custom: #7f4fb2;
$custom-light: #a782c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4fb2",
  "rgb": {
    "r": 127,
    "g": 79,
    "b": 178
  },
  "hsl": {
    "h": 269.091,
    "s": 39.13,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5275,
    "c": 0.15414,
    "h": 304
  },
  "luminance": 0.13318
}

Semantic roles & 50–950 ramp

primary
#7F4FB2
secondary
#AFC498
accent
#CF5996
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7F4FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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