#782CAF#782CAF

#782CAF is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.1% C 0.197 H 306.6°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#782CAF
RGBrgb(120, 44, 175)
HSLhsl(275, 60%, 43%)
HSVhsv(275, 75%, 69%)
CMYKcmyk(31.4%, 74.9%, 0%, 31.4%)
CIE-LABlab(35.77, 55.11, -55.63)
CIE-LCHlch(35.77, 78.31, 314.73°)
OKLaboklab(47.1% 0.1174 -0.1581)
OKLCHoklch(47.1% 0.197 306.6)
XYZxyz(16.3826, 8.8898, 41.4020)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782CAF #63AF2C
analogous
#362CAF #782CAF #AF2CA4
triadic
#782CAF #AF782C #2CAF78
tetradic
#782CAF #AF362C #63AF2C #2CA4AF
square
#782CAF #AF362C #63AF2C #2CA4AF
split-complementary
#782CAF #A4AF2C #2CAF36
monochromatic
#35134D #56207E #782CAF #9747D1 #B378DD

Accessibility & contrast

On white

7.56
#782CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#782CAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782CAF
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782CAF#FFFFFF#000000##FFFFFF
##782CAF1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0055AC
Tritanopia (blue-blind)
#6E4C6C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #782caf;
/* rgb */ color: rgb(120, 44, 175);
/* oklch */ color: oklch(47.1% 0.197 306.6);
Tailwind
colors: {
  custom: {
    50: '#a46dc8',
    500: '#782caf',
    950: '#000000',
  },
}
SCSS
$custom: #782caf;
$custom-light: #a46dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#782caf",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 175
  },
  "hsl": {
    "h": 274.809,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47103,
    "c": 0.19696,
    "h": 306.6
  },
  "luminance": 0.0889
}

Semantic roles & 50–950 ramp

primary
#782CAF
secondary
#95C572
accent
#E34587
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782CAF

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

Preview Lab → · Contrast checker → · Palette generator →

#782CAF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva