#782FAA#782FAA

#782FAA is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.0% C 0.188 H 307.7°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#782FAA
RGBrgb(120, 47, 170)
HSLhsl(276, 57%, 43%)
HSVhsv(276, 72%, 67%)
CMYKcmyk(29.4%, 72.4%, 0%, 33.3%)
CIE-LABlab(35.85, 52.70, -52.53)
CIE-LCHlch(35.85, 74.40, 315.09°)
OKLaboklab(47.04% 0.1154 -0.149)
OKLCHoklch(47.04% 0.188 307.7)
XYZxyz(16.0164, 8.9286, 38.9021)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782FAA #61AA2F
analogous
#3B2FAA #782FAA #AA2F9E
triadic
#782FAA #AA782F #2FAA78
tetradic
#782FAA #AA3B2F #61AA2F #2F9EAA
square
#782FAA #AA3B2F #61AA2F #2F9EAA
split-complementary
#782FAA #9EAA2F #2FAA3B
monochromatic
#34144A #56227A #782FAA #9749CD #B379DA

Accessibility & contrast

On white

7.54
#782FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#782FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782FAA
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782FAA#FFFFFF#000000##FFFFFF
##782FAA1.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#0655A7
Tritanopia (blue-blind)
#704B6A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #782faa;
/* rgb */ color: rgb(120, 47, 170);
/* oklch */ color: oklch(47.0% 0.188 307.7);
Tailwind
colors: {
  custom: {
    50: '#a36ec4',
    500: '#782faa',
    950: '#000000',
  },
}
SCSS
$custom: #782faa;
$custom-light: #a36ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#782faa",
  "rgb": {
    "r": 120,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 275.61,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47039,
    "c": 0.18847,
    "h": 307.7
  },
  "luminance": 0.08928
}

Semantic roles & 50–950 ramp

primary
#782FAA
secondary
#93C272
accent
#E04886
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #782FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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