#782FB3#782FB3

#782FB3 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.7% C 0.198 H 305.2°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#782FB3
RGBrgb(120, 47, 179)
HSLhsl(273, 58%, 44%)
HSVhsv(273, 74%, 70%)
CMYKcmyk(33%, 73.7%, 0%, 29.8%)
CIE-LABlab(36.52, 54.77, -56.80)
CIE-LCHlch(36.52, 78.90, 313.96°)
OKLaboklab(47.73% 0.1138 -0.1616)
OKLCHoklch(47.73% 0.198 305.2)
XYZxyz(16.8971, 9.2809, 43.5403)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782FB3 #6AB32F
analogous
#362FB3 #782FB3 #B32FAC
triadic
#782FB3 #B3782F #2FB378
tetradic
#782FB3 #B3362F #6AB32F #2FACB3
square
#782FB3 #B3362F #6AB32F #2FACB3
split-complementary
#782FB3 #ACB32F #2FB336
monochromatic
#371652 #582283 #782FB3 #974FD1 #B37FDD

Accessibility & contrast

On white

7.35
#782FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#782FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782FB3
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782FB3#FFFFFF#000000##FFFFFF
##782FB31.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0056B0
Tritanopia (blue-blind)
#6D4F6F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #782fb3;
/* rgb */ color: rgb(120, 47, 179);
/* oklch */ color: oklch(47.7% 0.198 305.2);
Tailwind
colors: {
  custom: {
    50: '#a46fcb',
    500: '#782fb3',
    950: '#000000',
  },
}
SCSS
$custom: #782fb3;
$custom-light: #a46fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#782fb3",
  "rgb": {
    "r": 120,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 273.182,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47727,
    "c": 0.19762,
    "h": 305.2
  },
  "luminance": 0.09281
}

Semantic roles & 50–950 ramp

primary
#782FB3
secondary
#9BC678
accent
#E2468C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #782FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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