#781BA7#781BA7

#781BA7 is a mid, highly saturated violet. Relative luminance 0.076; OKLCH L 45.0% C 0.206 H 310.3°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#781BA7
RGBrgb(120, 27, 167)
HSLhsl(280, 72%, 38%)
HSVhsv(280, 84%, 65%)
CMYKcmyk(28.1%, 83.8%, 0%, 34.5%)
CIE-LABlab(33.06, 59.38, -55.24)
CIE-LCHlch(33.06, 81.10, 317.07°)
OKLaboklab(45.01% 0.1331 -0.1569)
OKLCHoklch(45.01% 0.206 310.3)
XYZxyz(15.1113, 7.5673, 37.2163)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781BA7 #4AA71B
analogous
#321BA7 #781BA7 #A71B90
triadic
#781BA7 #A7781B #1BA778
tetradic
#781BA7 #A7321B #4AA71B #1B90A7
square
#781BA7 #A7321B #4AA71B #1B90A7
split-complementary
#781BA7 #90A71B #1BA732
monochromatic
#2C0A3E #521272 #781BA7 #9E24DC #B558E4

Accessibility & contrast

On white

8.36
#781BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#781BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781BA7
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781BA7#FFFFFF#000000##FFFFFF
##781BA71.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#714163
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #781ba7;
/* rgb */ color: rgb(120, 27, 167);
/* oklch */ color: oklch(45.0% 0.206 310.3);
Tailwind
colors: {
  custom: {
    50: '#a465c2',
    500: '#781ba7',
    950: '#000000',
  },
}
SCSS
$custom: #781ba7;
$custom-light: #a465c2;
$custom-dark: #000000;
JSON
{
  "hex": "#781ba7",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 167
  },
  "hsl": {
    "h": 279.857,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45011,
    "c": 0.20575,
    "h": 310.3
  },
  "luminance": 0.07567
}

Semantic roles & 50–950 ramp

primary
#781BA7
secondary
#7CC856
accent
#EF3976
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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