#781F7F#781F7F

#781F7F is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.4% C 0.167 H 324.8°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#781F7F
RGBrgb(120, 31, 127)
HSLhsl(296, 61%, 31%)
HSVhsv(296, 76%, 50%)
CMYKcmyk(5.5%, 75.6%, 0%, 50.2%)
CIE-LABlab(30.66, 50.19, -34.55)
CIE-LCHlch(30.66, 60.94, 325.46°)
OKLaboklab(42.41% 0.1364 -0.0962)
OKLCHoklch(42.41% 0.167 324.8)
XYZxyz(12.0662, 6.5061, 20.6948)
Luminance0.0650 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F7F #267F1F
analogous
#481F7F #781F7F #7F1F56
triadic
#781F7F #7F781F #1F7F78
tetradic
#781F7F #7F481F #267F1F #1F567F
square
#781F7F #7F481F #267F1F #1F567F
split-complementary
#781F7F #567F1F #1F7F48
monochromatic
#1B071D #4A134E #781F7F #A62BB0 #C846D2

Accessibility & contrast

On white

9.13
#781F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#781F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F7F
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F7F#FFFFFF#000000##FFFFFF
##781F7F1.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004182
Deuteranopia (green-blind)
#324C7D
Tritanopia (blue-blind)
#7B304D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781f7f;
/* rgb */ color: rgb(120, 31, 127);
/* oklch */ color: oklch(42.4% 0.167 324.8);
Tailwind
colors: {
  custom: {
    50: '#a265a4',
    500: '#781f7f',
    950: '#000000',
  },
}
SCSS
$custom: #781f7f;
$custom-light: #a265a4;
$custom-dark: #000000;
JSON
{
  "hex": "#781f7f",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 295.625,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42411,
    "c": 0.16689,
    "h": 324.8
  },
  "luminance": 0.06505
}

Semantic roles & 50–950 ramp

primary
#781F7F
secondary
#50B248
accent
#E44450
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781F7F

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

Preview Lab → · Contrast checker → · Palette generator →

#781F7F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva