#781EAC#781EAC

#781EAC is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.6% C 0.208 H 308.6°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#781EAC
RGBrgb(120, 30, 172)
HSLhsl(278, 70%, 40%)
HSVhsv(278, 83%, 67%)
CMYKcmyk(30.2%, 82.6%, 0%, 32.5%)
CIE-LABlab(33.77, 59.53, -57.09)
CIE-LCHlch(33.77, 82.48, 316.20°)
OKLaboklab(45.63% 0.1297 -0.1623)
OKLCHoklch(45.63% 0.208 308.6)
XYZxyz(15.6548, 7.9004, 39.7220)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781EAC #52AC1E
analogous
#311EAC #781EAC #AC1E99
triadic
#781EAC #AC781E #1EAC78
tetradic
#781EAC #AC311E #52AC1E #1E99AC
square
#781EAC #AC311E #52AC1E #1E99AC
split-complementary
#781EAC #99AC1E #1EAC31
monochromatic
#2F0C44 #541578 #781EAC #9B2DDA #B461E3

Accessibility & contrast

On white

8.14
#781EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#781EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781EAC
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781EAC#FFFFFF#000000##FFFFFF
##781EAC1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB0
Deuteranopia (green-blind)
#0050A9
Tritanopia (blue-blind)
#704467
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #781eac;
/* rgb */ color: rgb(120, 30, 172);
/* oklch */ color: oklch(45.6% 0.208 308.6);
Tailwind
colors: {
  custom: {
    50: '#a467c6',
    500: '#781eac',
    950: '#000000',
  },
}
SCSS
$custom: #781eac;
$custom-light: #a467c6;
$custom-dark: #000000;
JSON
{
  "hex": "#781eac",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 172
  },
  "hsl": {
    "h": 278.028,
    "s": 70.297,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4563,
    "c": 0.20777,
    "h": 308.6
  },
  "luminance": 0.079
}

Semantic roles & 50–950 ramp

primary
#781EAC
secondary
#85C85E
accent
#ED3B7C
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #781EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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