#781F7E#781F7E

#781F7E is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.3% C 0.166 H 325.2°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#781F7E
RGBrgb(120, 31, 126)
HSLhsl(296, 61%, 31%)
HSVhsv(296, 75%, 49%)
CMYKcmyk(4.8%, 75.4%, 0%, 50.6%)
CIE-LABlab(30.59, 50.01, -34.02)
CIE-LCHlch(30.59, 60.49, 325.77°)
OKLaboklab(42.35% 0.1364 -0.0947)
OKLCHoklch(42.35% 0.166 325.2)
XYZxyz(12.0013, 6.4802, 20.3533)
Luminance0.0648 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F7E #257E1F
analogous
#481F7E #781F7E #7E1F54
triadic
#781F7E #7E781F #1F7E78
tetradic
#781F7E #7E481F #257E1F #1F547E
square
#781F7E #7E481F #257E1F #1F547E
split-complementary
#781F7E #547E1F #1F7E48
monochromatic
#1A071C #49134D #781F7E #A72BAF #C946D1

Accessibility & contrast

On white

9.15
#781F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781F7E
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F7E#FFFFFF#000000##FFFFFF
##781F7E1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014181
Deuteranopia (green-blind)
#334C7C
Tritanopia (blue-blind)
#7B2F4D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781f7e;
/* rgb */ color: rgb(120, 31, 126);
/* oklch */ color: oklch(42.3% 0.166 325.2);
Tailwind
colors: {
  custom: {
    50: '#a265a4',
    500: '#781f7e',
    950: '#000000',
  },
}
SCSS
$custom: #781f7e;
$custom-light: #a265a4;
$custom-dark: #000000;
JSON
{
  "hex": "#781f7e",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 296.211,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42347,
    "c": 0.16604,
    "h": 325.2
  },
  "luminance": 0.06479
}

Semantic roles & 50–950 ramp

primary
#781F7E
secondary
#4EB148
accent
#E4444E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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