#7F4DC9#7F4DC9

#7F4DC9 is a mid, vivid violet. Relative luminance 0.140; OKLCH L 54.0% C 0.185 H 298.6°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#7F4DC9
RGBrgb(127, 77, 201)
HSLhsl(264, 53%, 55%)
HSVhsv(264, 62%, 79%)
CMYKcmyk(36.8%, 61.7%, 0%, 21.2%)
CIE-LABlab(44.29, 46.89, -57.06)
CIE-LCHlch(44.29, 73.86, 309.41°)
OKLaboklab(53.98% 0.0884 -0.1622)
OKLCHoklch(53.98% 0.185 298.6)
XYZxyz(21.9463, 14.0366, 56.8001)
Luminance0.1404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4DC9 #97C94D
analogous
#4D59C9 #7F4DC9 #BD4DC9
triadic
#7F4DC9 #C97F4D #4DC97F
tetradic
#7F4DC9 #C94D59 #97C94D #4DC9BD
square
#7F4DC9 #C94D59 #97C94D #4DC9BD
split-complementary
#7F4DC9 #C9BD4D #59C94D
monochromatic
#462477 #6132A6 #7F4DC9 #A17CD7 #C3ABE5

Accessibility & contrast

On white

5.52
#7F4DC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#7F4DC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4DC9
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4DC9#FFFFFF#000000##FFFFFF
##7F4DC91.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CD
Deuteranopia (green-blind)
#1768C6
Tritanopia (blue-blind)
#6E6884
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7f4dc9;
/* rgb */ color: rgb(127, 77, 201);
/* oklch */ color: oklch(54.0% 0.185 298.6);
Tailwind
colors: {
  custom: {
    50: '#a981da',
    500: '#7f4dc9',
    950: '#000000',
  },
}
SCSS
$custom: #7f4dc9;
$custom-light: #a981da;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4dc9",
  "rgb": {
    "r": 127,
    "g": 77,
    "b": 201
  },
  "hsl": {
    "h": 264.194,
    "s": 53.448,
    "l": 54.51
  },
  "oklch": {
    "l": 0.53983,
    "c": 0.18476,
    "h": 298.6
  },
  "luminance": 0.14037
}

Semantic roles & 50–950 ramp

primary
#7F4DC9
secondary
#BED39F
accent
#DD4BA2
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7F4DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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