#781EBD#781EBD

#781EBD is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 47.1% C 0.223 H 303.9°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#781EBD
RGBrgb(120, 30, 189)
HSLhsl(274, 73%, 43%)
HSVhsv(274, 84%, 74%)
CMYKcmyk(36.5%, 84.1%, 0%, 25.9%)
CIE-LABlab(35.19, 63.20, -64.87)
CIE-LCHlch(35.19, 90.57, 314.25°)
OKLaboklab(47.05% 0.1246 -0.1852)
OKLCHoklch(47.05% 0.223 303.9)
XYZxyz(17.3932, 8.5958, 48.8771)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781EBD #63BD1E
analogous
#281EBD #781EBD #BD1EB3
triadic
#781EBD #BD781E #1EBD78
tetradic
#781EBD #BD281E #63BD1E #1EB3BD
square
#781EBD #BD281E #63BD1E #1EB3BD
split-complementary
#781EBD #B3BD1E #1EBD28
monochromatic
#350D53 #561688 #781EBD #9739E0 #B36DE8

Accessibility & contrast

On white

7.72
#781EBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#781EBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781EBD
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781EBD#FFFFFF#000000##FFFFFF
##781EBD1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C1
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#6A4C71
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #781ebd;
/* rgb */ color: rgb(120, 30, 189);
/* oklch */ color: oklch(47.1% 0.223 303.9);
Tailwind
colors: {
  custom: {
    50: '#a668d2',
    500: '#781ebd',
    950: '#000000',
  },
}
SCSS
$custom: #781ebd;
$custom-light: #a668d2;
$custom-dark: #000000;
JSON
{
  "hex": "#781ebd",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 189
  },
  "hsl": {
    "h": 273.962,
    "s": 72.603,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47053,
    "c": 0.22321,
    "h": 303.9
  },
  "luminance": 0.08596
}

Semantic roles & 50–950 ramp

primary
#781EBD
secondary
#95CE69
accent
#EF3888
background
#FAF6FD
surface
#F4EBFA
border
#CEC6D3
text
#100714
muted
#7F7A83

Preview Lab

Preview with #781EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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