#782FB8#782FB8

#782FB8 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.1% C 0.203 H 303.8°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#782FB8
RGBrgb(120, 47, 184)
HSLhsl(272, 59%, 45%)
HSVhsv(272, 74%, 72%)
CMYKcmyk(34.8%, 74.5%, 0%, 27.8%)
CIE-LABlab(36.91, 55.93, -59.13)
CIE-LCHlch(36.91, 81.39, 313.41°)
OKLaboklab(48.12% 0.1128 -0.1684)
OKLCHoklch(48.12% 0.203 303.8)
XYZxyz(17.4120, 9.4868, 46.2519)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782FB8 #6FB82F
analogous
#342FB8 #782FB8 #B82FB3
triadic
#782FB8 #B8782F #2FB878
tetradic
#782FB8 #B8342F #6FB82F #2FB3B8
square
#782FB8 #B8342F #6FB82F #2FB3B8
split-complementary
#782FB8 #B3B82F #2FB834
monochromatic
#381657 #582387 #782FB8 #9652D3 #B482DF

Accessibility & contrast

On white

7.25
#782FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#782FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782FB8
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782FB8#FFFFFF#000000##FFFFFF
##782FB81.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0057B5
Tritanopia (blue-blind)
#6B5171
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #782fb8;
/* rgb */ color: rgb(120, 47, 184);
/* oklch */ color: oklch(48.1% 0.203 303.8);
Tailwind
colors: {
  custom: {
    50: '#a56fce',
    500: '#782fb8',
    950: '#000000',
  },
}
SCSS
$custom: #782fb8;
$custom-light: #a56fce;
$custom-dark: #000000;
JSON
{
  "hex": "#782fb8",
  "rgb": {
    "r": 120,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 271.971,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4812,
    "c": 0.2027,
    "h": 303.8
  },
  "luminance": 0.09487
}

Semantic roles & 50–950 ramp

primary
#782FB8
secondary
#9FC87B
accent
#E2458F
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #782FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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