#782FBA#782FBA

#782FBA is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.3% C 0.205 H 303.3°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#782FBA
RGBrgb(120, 47, 186)
HSLhsl(272, 60%, 46%)
HSVhsv(272, 75%, 73%)
CMYKcmyk(35.5%, 74.7%, 0%, 27.1%)
CIE-LABlab(37.06, 56.40, -60.05)
CIE-LCHlch(37.06, 82.39, 313.20°)
OKLaboklab(48.28% 0.1124 -0.1711)
OKLCHoklch(48.28% 0.205 303.3)
XYZxyz(17.6231, 9.5713, 47.3639)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782FBA #71BA2F
analogous
#322FBA #782FBA #BA2FB6
triadic
#782FBA #BA782F #2FBA78
tetradic
#782FBA #BA322F #71BA2F #2FB6BA
square
#782FBA #BA322F #71BA2F #2FB6BA
split-complementary
#782FBA #B6BA2F #2FBA32
monochromatic
#391658 #582389 #782FBA #9653D3 #B484E0

Accessibility & contrast

On white

7.21
#782FBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #782FBA
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782FBA#FFFFFF#000000##FFFFFF
##782FBA1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #782fba;
/* rgb */ color: rgb(120, 47, 186);
/* oklch */ color: oklch(48.3% 0.205 303.3);
Tailwind
colors: {
  custom: {
    50: '#a56fd0',
    500: '#782fba',
    950: '#000000',
  },
}
SCSS
$custom: #782fba;
$custom-light: #a56fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#782fba",
  "rgb": {
    "r": 120,
    "g": 47,
    "b": 186
  },
  "hsl": {
    "h": 271.511,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.48279,
    "c": 0.20474,
    "h": 303.3
  },
  "luminance": 0.09571
}

Semantic roles & 50–950 ramp

primary
#782FBA
secondary
#A0C97C
accent
#E34590
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #782FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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