#781F6C#781F6C

#781F6C is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.3% C 0.151 H 334.0°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#781F6C
RGBrgb(120, 31, 108)
HSLhsl(308, 59%, 30%)
HSVhsv(308, 74%, 47%)
CMYKcmyk(0%, 74.2%, 10%, 52.9%)
CIE-LABlab(29.56, 46.88, -24.24)
CIE-LCHlch(29.56, 52.77, 332.66°)
OKLaboklab(41.27% 0.1359 -0.0663)
OKLCHoklch(41.27% 0.151 334)
XYZxyz(10.9426, 6.0567, 14.7772)
Luminance0.0606 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F6C #1F782B
analogous
#581F78 #781F6C #781F40
triadic
#781F6C #6C781F #1F6C78
tetradic
#781F6C #78581F #1F782B #1F4078
square
#781F6C #78581F #1F782B #1F4078
split-complementary
#781F6C #40781F #1F7858
monochromatic
#180616 #471240 #781F6C #A92C98 #CE43BC

Accessibility & contrast

On white

9.50
#781F6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#781F6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F6C
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F6C#FFFFFF#000000##FFFFFF
##781F6C1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3D6E
Deuteranopia (green-blind)
#3D4A6A
Tritanopia (blue-blind)
#7E2743
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #781f6c;
/* rgb */ color: rgb(120, 31, 108);
/* oklch */ color: oklch(41.3% 0.151 334.0);
Tailwind
colors: {
  custom: {
    50: '#a26496',
    500: '#781f6c',
    950: '#000000',
  },
}
SCSS
$custom: #781f6c;
$custom-light: #a26496;
$custom-dark: #000000;
JSON
{
  "hex": "#781f6c",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 108
  },
  "hsl": {
    "h": 308.09,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41267,
    "c": 0.15127,
    "h": 334
  },
  "luminance": 0.06056
}

Semantic roles & 50–950 ramp

primary
#781F6C
secondary
#47AB55
accent
#E25B46
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060D
muted
#7F7A7E

Preview Lab

Preview with #781F6C

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

Preview Lab → · Contrast checker → · Palette generator →

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