#782DBA#782DBA

#782DBA is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.207 H 303.5°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#782DBA
RGBrgb(120, 45, 186)
HSLhsl(272, 61%, 45%)
HSVhsv(272, 76%, 73%)
CMYKcmyk(35.5%, 75.8%, 0%, 27.1%)
CIE-LABlab(36.77, 57.23, -60.53)
CIE-LCHlch(36.77, 83.30, 313.40°)
OKLaboklab(48.08% 0.1142 -0.1725)
OKLCHoklch(48.08% 0.207 303.5)
XYZxyz(17.5450, 9.4150, 47.3378)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782DBA #6FBA2D
analogous
#322DBA #782DBA #BA2DB5
triadic
#782DBA #BA782D #2DBA78
tetradic
#782DBA #BA322D #6FBA2D #2DB5BA
square
#782DBA #BA322D #6FBA2D #2DB5BA
split-complementary
#782DBA #B5BA2D #2DBA32
monochromatic
#381557 #582189 #782DBA #9650D5 #B481E0

Accessibility & contrast

On white

7.28
#782DBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#782DBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782DBA
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782DBA#FFFFFF#000000##FFFFFF
##782DBA1.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #782dba;
/* rgb */ color: rgb(120, 45, 186);
/* oklch */ color: oklch(48.1% 0.207 303.5);
Tailwind
colors: {
  custom: {
    50: '#a56ed0',
    500: '#782dba',
    950: '#000000',
  },
}
SCSS
$custom: #782dba;
$custom-light: #a56ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#782dba",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 186
  },
  "hsl": {
    "h": 271.915,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48075,
    "c": 0.20687,
    "h": 303.5
  },
  "luminance": 0.09415
}

Semantic roles & 50–950 ramp

primary
#782DBA
secondary
#9FC979
accent
#E4448F
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #782DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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