#781CAB#781CAB

#781CAB is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.4% C 0.209 H 309.1°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#781CAB
RGBrgb(120, 28, 171)
HSLhsl(279, 72%, 39%)
HSVhsv(279, 84%, 67%)
CMYKcmyk(29.8%, 83.6%, 0%, 32.9%)
CIE-LABlab(33.49, 59.93, -56.96)
CIE-LCHlch(33.49, 82.68, 316.45°)
OKLaboklab(45.41% 0.1314 -0.1619)
OKLCHoklch(45.41% 0.209 309.1)
XYZxyz(15.5102, 7.7641, 39.2017)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781CAB #4FAB1C
analogous
#301CAB #781CAB #AB1C97
triadic
#781CAB #AB781C #1CAB78
tetradic
#781CAB #AB301C #4FAB1C #1C97AB
square
#781CAB #AB301C #4FAB1C #1C97AB
split-complementary
#781CAB #97AB1C #1CAB30
monochromatic
#2E0B42 #531376 #781CAB #9C28DC #B45DE4

Accessibility & contrast

On white

8.23
#781CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#781CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781CAB
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781CAB#FFFFFF#000000##FFFFFF
##781CAB1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#0050A8
Tritanopia (blue-blind)
#704366
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #781cab;
/* rgb */ color: rgb(120, 28, 171);
/* oklch */ color: oklch(45.4% 0.209 309.1);
Tailwind
colors: {
  custom: {
    50: '#a466c5',
    500: '#781cab',
    950: '#000000',
  },
}
SCSS
$custom: #781cab;
$custom-light: #a466c5;
$custom-dark: #000000;
JSON
{
  "hex": "#781cab",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 171
  },
  "hsl": {
    "h": 278.601,
    "s": 71.859,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45405,
    "c": 0.20851,
    "h": 309.1
  },
  "luminance": 0.07764
}

Semantic roles & 50–950 ramp

primary
#781CAB
secondary
#82C95A
accent
#EF397A
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100613
muted
#7F7A82

Preview Lab

Preview with #781CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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