#781FAC#781FAC

#781FAC is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.7% C 0.207 H 308.6°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#781FAC
RGBrgb(120, 31, 172)
HSLhsl(278, 69%, 40%)
HSVhsv(278, 82%, 67%)
CMYKcmyk(30.2%, 82%, 0%, 32.5%)
CIE-LABlab(33.88, 59.22, -56.91)
CIE-LCHlch(33.88, 82.13, 316.14°)
OKLaboklab(45.71% 0.129 -0.1618)
OKLCHoklch(45.71% 0.207 308.6)
XYZxyz(15.6806, 7.9519, 39.7305)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781FAC #53AC1F
analogous
#311FAC #781FAC #AC1F9A
triadic
#781FAC #AC781F #1FAC78
tetradic
#781FAC #AC311F #53AC1F #1F9AAC
square
#781FAC #AC311F #53AC1F #1F9AAC
split-complementary
#781FAC #9AAC1F #1FAC31
monochromatic
#300C44 #541678 #781FAC #9A2FD9 #B463E3

Accessibility & contrast

On white

8.11
#781FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#781FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781FAC
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781FAC#FFFFFF#000000##FFFFFF
##781FAC1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB0
Deuteranopia (green-blind)
#0051A9
Tritanopia (blue-blind)
#704567
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #781fac;
/* rgb */ color: rgb(120, 31, 172);
/* oklch */ color: oklch(45.7% 0.207 308.6);
Tailwind
colors: {
  custom: {
    50: '#a467c6',
    500: '#781fac',
    950: '#000000',
  },
}
SCSS
$custom: #781fac;
$custom-light: #a467c6;
$custom-dark: #000000;
JSON
{
  "hex": "#781fac",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 172
  },
  "hsl": {
    "h": 277.872,
    "s": 69.458,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45705,
    "c": 0.20692,
    "h": 308.6
  },
  "luminance": 0.07952
}

Semantic roles & 50–950 ramp

primary
#781FAC
secondary
#86C85F
accent
#EC3C7D
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #781FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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