#782FB7#782FB7

#782FB7 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.0% C 0.202 H 304.1°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#782FB7
RGBrgb(120, 47, 183)
HSLhsl(272, 59%, 45%)
HSVhsv(272, 74%, 72%)
CMYKcmyk(34.4%, 74.3%, 0%, 28.2%)
CIE-LABlab(36.83, 55.70, -58.66)
CIE-LCHlch(36.83, 80.89, 313.51°)
OKLaboklab(48.04% 0.113 -0.1671)
OKLCHoklch(48.04% 0.202 304.1)
XYZxyz(17.3075, 9.4450, 45.7018)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782FB7 #6EB72F
analogous
#342FB7 #782FB7 #B72FB2
triadic
#782FB7 #B7782F #2FB778
tetradic
#782FB7 #B7342F #6EB72F #2FB2B7
square
#782FB7 #B7342F #6EB72F #2FB2B7
split-complementary
#782FB7 #B2B72F #2FB734
monochromatic
#381656 #582286 #782FB7 #9651D2 #B482DF

Accessibility & contrast

On white

7.27
#782FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#782FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782FB7
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782FB7#FFFFFF#000000##FFFFFF
##782FB71.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0056B4
Tritanopia (blue-blind)
#6C5171
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #782fb7;
/* rgb */ color: rgb(120, 47, 183);
/* oklch */ color: oklch(48.0% 0.202 304.1);
Tailwind
colors: {
  custom: {
    50: '#a56fcd',
    500: '#782fb7',
    950: '#000000',
  },
}
SCSS
$custom: #782fb7;
$custom-light: #a56fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#782fb7",
  "rgb": {
    "r": 120,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 272.206,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48041,
    "c": 0.20168,
    "h": 304.1
  },
  "luminance": 0.09445
}

Semantic roles & 50–950 ramp

primary
#782FB7
secondary
#9EC87A
accent
#E2458E
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #782FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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