#781BA8#781BA8

#781BA8 is a mid, highly saturated violet. Relative luminance 0.076; OKLCH L 45.1% C 0.207 H 310.0°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#781BA8
RGBrgb(120, 27, 168)
HSLhsl(280, 72%, 38%)
HSVhsv(280, 84%, 66%)
CMYKcmyk(28.6%, 83.9%, 0%, 34.1%)
CIE-LABlab(33.15, 59.59, -55.71)
CIE-LCHlch(33.15, 81.58, 316.93°)
OKLaboklab(45.09% 0.1329 -0.1582)
OKLCHoklch(45.09% 0.207 310)
XYZxyz(15.2041, 7.6044, 37.7051)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781BA8 #4BA81B
analogous
#311BA8 #781BA8 #A81B92
triadic
#781BA8 #A8781B #1BA878
tetradic
#781BA8 #A8311B #4BA81B #1B92A8
square
#781BA8 #A8311B #4BA81B #1B92A8
split-complementary
#781BA8 #92A81B #1BA831
monochromatic
#2D0A3F #521373 #781BA8 #9D24DC #B559E4

Accessibility & contrast

On white

8.33
#781BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#781BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781BA8
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781BA8#FFFFFF#000000##FFFFFF
##781BA81.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#004FA5
Tritanopia (blue-blind)
#714164
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #781ba8;
/* rgb */ color: rgb(120, 27, 168);
/* oklch */ color: oklch(45.1% 0.207 310.0);
Tailwind
colors: {
  custom: {
    50: '#a465c3',
    500: '#781ba8',
    950: '#000000',
  },
}
SCSS
$custom: #781ba8;
$custom-light: #a465c3;
$custom-dark: #000000;
JSON
{
  "hex": "#781ba8",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 168
  },
  "hsl": {
    "h": 279.574,
    "s": 72.308,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45092,
    "c": 0.20663,
    "h": 310
  },
  "luminance": 0.07604
}

Semantic roles & 50–950 ramp

primary
#781BA8
secondary
#7DC857
accent
#EF3977
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100613
muted
#7F7A82

Preview Lab

Preview with #781BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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