#782EBA#782EBA

#782EBA is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.206 H 303.4°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#782EBA
RGBrgb(120, 46, 186)
HSLhsl(272, 60%, 45%)
HSVhsv(272, 75%, 73%)
CMYKcmyk(35.5%, 75.3%, 0%, 27.1%)
CIE-LABlab(36.92, 56.82, -60.29)
CIE-LCHlch(36.92, 82.85, 313.30°)
OKLaboklab(48.18% 0.1133 -0.1718)
OKLCHoklch(48.18% 0.206 303.4)
XYZxyz(17.5836, 9.4922, 47.3507)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782EBA #70BA2E
analogous
#322EBA #782EBA #BA2EB6
triadic
#782EBA #BA782E #2EBA78
tetradic
#782EBA #BA322E #70BA2E #2EB6BA
square
#782EBA #BA322E #70BA2E #2EB6BA
split-complementary
#782EBA #B6BA2E #2EBA32
monochromatic
#391658 #582289 #782EBA #9651D4 #B482E0

Accessibility & contrast

On white

7.25
#782EBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#782EBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782EBA
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782EBA#FFFFFF#000000##FFFFFF
##782EBA1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#0057B7
Tritanopia (blue-blind)
#6B5172
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #782eba;
/* rgb */ color: rgb(120, 46, 186);
/* oklch */ color: oklch(48.2% 0.206 303.4);
Tailwind
colors: {
  custom: {
    50: '#a56ed0',
    500: '#782eba',
    950: '#000000',
  },
}
SCSS
$custom: #782eba;
$custom-light: #a56ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#782eba",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 186
  },
  "hsl": {
    "h": 271.714,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48176,
    "c": 0.20581,
    "h": 303.4
  },
  "luminance": 0.09492
}

Semantic roles & 50–950 ramp

primary
#782EBA
secondary
#A0C97B
accent
#E3448F
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #782EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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