#782EAF#782EAF

#782EAF is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.3% C 0.195 H 306.4°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#782EAF
RGBrgb(120, 46, 175)
HSLhsl(274, 58%, 43%)
HSVhsv(274, 74%, 69%)
CMYKcmyk(31.4%, 73.7%, 0%, 31.4%)
CIE-LABlab(36.07, 54.27, -55.16)
CIE-LCHlch(36.07, 77.38, 314.54°)
OKLaboklab(47.31% 0.1155 -0.1567)
OKLCHoklch(47.31% 0.195 306.4)
XYZxyz(16.4589, 9.0424, 41.4274)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782EAF #65AF2E
analogous
#382EAF #782EAF #AF2EA5
triadic
#782EAF #AF782E #2EAF78
tetradic
#782EAF #AF382E #65AF2E #2EA5AF
square
#782EAF #AF382E #65AF2E #2EA5AF
split-complementary
#782EAF #A5AF2E #2EAF38
monochromatic
#36154E #57217F #782EAF #974BD0 #B37BDC

Accessibility & contrast

On white

7.48
#782EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#782EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782EAF
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782EAF#FFFFFF#000000##FFFFFF
##782EAF1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0055AC
Tritanopia (blue-blind)
#6E4D6C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #782eaf;
/* rgb */ color: rgb(120, 46, 175);
/* oklch */ color: oklch(47.3% 0.195 306.4);
Tailwind
colors: {
  custom: {
    50: '#a46ec8',
    500: '#782eaf',
    950: '#000000',
  },
}
SCSS
$custom: #782eaf;
$custom-light: #a46ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#782eaf",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 175
  },
  "hsl": {
    "h": 274.419,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47311,
    "c": 0.1947,
    "h": 306.4
  },
  "luminance": 0.09042
}

Semantic roles & 50–950 ramp

primary
#782EAF
secondary
#96C574
accent
#E24688
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #782EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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