#781FA7#781FA7

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

Color values

HEX#781FA7
RGBrgb(120, 31, 167)
HSLhsl(279, 69%, 39%)
HSVhsv(279, 81%, 65%)
CMYKcmyk(28.1%, 81.4%, 0%, 34.5%)
CIE-LABlab(33.49, 58.15, -54.56)
CIE-LCHlch(33.49, 79.74, 316.83°)
OKLaboklab(45.3% 0.1303 -0.1549)
OKLCHoklch(45.3% 0.202 310.1)
XYZxyz(15.2094, 7.7634, 37.2490)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781FA7 #4EA71F
analogous
#341FA7 #781FA7 #A71F92
triadic
#781FA7 #A7781F #1FA778
tetradic
#781FA7 #A7341F #4EA71F #1F92A7
square
#781FA7 #A7341F #4EA71F #1F92A7
split-complementary
#781FA7 #92A71F #1FA734
monochromatic
#2E0C40 #531573 #781FA7 #9C2BD8 #B45FE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##781FA7#FFFFFF#000000##FFFFFF
##781FA71.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)
#004BAB
Deuteranopia (green-blind)
#0050A4
Tritanopia (blue-blind)
#714264
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #781fa7;
/* rgb */ color: rgb(120, 31, 167);
/* oklch */ color: oklch(45.3% 0.202 310.1);
Tailwind
colors: {
  custom: {
    50: '#a467c2',
    500: '#781fa7',
    950: '#000000',
  },
}
SCSS
$custom: #781fa7;
$custom-light: #a467c2;
$custom-dark: #000000;
JSON
{
  "hex": "#781fa7",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 279.265,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.45304,
    "c": 0.20238,
    "h": 310.1
  },
  "luminance": 0.07763
}

Semantic roles & 50–950 ramp

primary
#781FA7
secondary
#81C65C
accent
#EC3C79
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #781FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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