#782F94#782F94

#782F94 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.5% C 0.166 H 315.2°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#782F94
RGBrgb(120, 47, 148)
HSLhsl(283, 52%, 38%)
HSVhsv(283, 68%, 58%)
CMYKcmyk(18.9%, 68.2%, 0%, 42%)
CIE-LABlab(34.32, 47.82, -41.68)
CIE-LCHlch(34.32, 63.43, 318.92°)
OKLaboklab(45.47% 0.1178 -0.1172)
OKLCHoklch(45.47% 0.166 315.2)
XYZxyz(14.1067, 8.1647, 28.8441)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782F94 #4B942F
analogous
#452F94 #782F94 #942F7D
triadic
#782F94 #94782F #2F9478
tetradic
#782F94 #94452F #4B942F #2F7D94
square
#782F94 #94452F #4B942F #2F7D94
split-complementary
#782F94 #7D942F #2F9445
monochromatic
#2D1137 #522066 #782F94 #9D3EC2 #B56DD1

Accessibility & contrast

On white

7.98
#782F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#782F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782F94
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782F94#FFFFFF#000000##FFFFFF
##782F941.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C97
Deuteranopia (green-blind)
#2D5392
Tritanopia (blue-blind)
#76435D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #782f94;
/* rgb */ color: rgb(120, 47, 148);
/* oklch */ color: oklch(45.5% 0.166 315.2);
Tailwind
colors: {
  custom: {
    50: '#a26db4',
    500: '#782f94',
    950: '#000000',
  },
}
SCSS
$custom: #782f94;
$custom-light: #a26db4;
$custom-dark: #000000;
JSON
{
  "hex": "#782f94",
  "rgb": {
    "r": 120,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 283.366,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45467,
    "c": 0.16618,
    "h": 315.2
  },
  "luminance": 0.08164
}

Semantic roles & 50–950 ramp

primary
#782F94
secondary
#7DB867
accent
#DB4D74
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #782F94

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

Preview Lab → · Contrast checker → · Palette generator →

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