#782FAB#782FAB

#782FAB is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.1% C 0.189 H 307.4°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#782FAB
RGBrgb(120, 47, 171)
HSLhsl(275, 57%, 43%)
HSVhsv(275, 73%, 67%)
CMYKcmyk(29.8%, 72.5%, 0%, 32.9%)
CIE-LABlab(35.92, 52.92, -53.01)
CIE-LCHlch(35.92, 74.90, 314.96°)
OKLaboklab(47.11% 0.1152 -0.1504)
OKLCHoklch(47.11% 0.189 307.4)
XYZxyz(16.1114, 8.9666, 39.4022)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782FAB #62AB2F
analogous
#3A2FAB #782FAB #AB2FA0
triadic
#782FAB #AB782F #2FAB78
tetradic
#782FAB #AB3A2F #62AB2F #2FA0AB
square
#782FAB #AB3A2F #62AB2F #2FA0AB
split-complementary
#782FAB #A0AB2F #2FAB3A
monochromatic
#35154B #56227B #782FAB #974ACD #B37ADA

Accessibility & contrast

On white

7.52
#782FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #782FAB
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782FAB#FFFFFF#000000##FFFFFF
##782FAB1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AF
Deuteranopia (green-blind)
#0255A8
Tritanopia (blue-blind)
#704C6A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #782fab;
/* rgb */ color: rgb(120, 47, 171);
/* oklch */ color: oklch(47.1% 0.189 307.4);
Tailwind
colors: {
  custom: {
    50: '#a46ec5',
    500: '#782fab',
    950: '#000000',
  },
}
SCSS
$custom: #782fab;
$custom-light: #a46ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#782fab",
  "rgb": {
    "r": 120,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 275.323,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47114,
    "c": 0.18949,
    "h": 307.4
  },
  "luminance": 0.08966
}

Semantic roles & 50–950 ramp

primary
#782FAB
secondary
#94C373
accent
#E04886
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #782FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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