#782FB9#782FB9

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

Color values

HEX#782FB9
RGBrgb(120, 47, 185)
HSLhsl(272, 59%, 45%)
HSVhsv(272, 75%, 73%)
CMYKcmyk(35.1%, 74.6%, 0%, 27.5%)
CIE-LABlab(36.98, 56.17, -59.59)
CIE-LCHlch(36.98, 81.89, 313.30°)
OKLaboklab(48.2% 0.1126 -0.1698)
OKLCHoklch(48.2% 0.204 303.5)
XYZxyz(17.5172, 9.5289, 46.8059)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782FB9 #70B92F
analogous
#332FB9 #782FB9 #B92FB5
triadic
#782FB9 #B9782F #2FB978
tetradic
#782FB9 #B9332F #70B92F #2FB5B9
square
#782FB9 #B9332F #70B92F #2FB5B9
split-complementary
#782FB9 #B5B92F #2FB933
monochromatic
#391657 #582388 #782FB9 #9652D3 #B483DF

Accessibility & contrast

On white

7.23
#782FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#782FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782FB9
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782FB9#FFFFFF#000000##FFFFFF
##782FB91.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#0057B6
Tritanopia (blue-blind)
#6B5272
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #782fb9;
/* rgb */ color: rgb(120, 47, 185);
/* oklch */ color: oklch(48.2% 0.204 303.5);
Tailwind
colors: {
  custom: {
    50: '#a56fcf',
    500: '#782fb9',
    950: '#000000',
  },
}
SCSS
$custom: #782fb9;
$custom-light: #a56fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#782fb9",
  "rgb": {
    "r": 120,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 271.739,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.482,
    "c": 0.20372,
    "h": 303.5
  },
  "luminance": 0.09529
}

Semantic roles & 50–950 ramp

primary
#782FB9
secondary
#A0C97B
accent
#E3458F
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #782FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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