#783197#783197

#783197 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.9% C 0.166 H 313.8°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#783197
RGBrgb(120, 49, 151)
HSLhsl(282, 51%, 39%)
HSVhsv(282, 68%, 59%)
CMYKcmyk(20.5%, 67.5%, 0%, 40.8%)
CIE-LABlab(34.85, 47.54, -42.67)
CIE-LCHlch(34.85, 63.88, 318.09°)
OKLaboklab(45.91% 0.1153 -0.1201)
OKLCHoklch(45.91% 0.166 313.8)
XYZxyz(14.4290, 8.4245, 30.1382)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#783197 #509731
analogous
#453197 #783197 #973183
triadic
#783197 #977831 #319778
tetradic
#783197 #974531 #509731 #318397
square
#783197 #974531 #509731 #318397
split-complementary
#783197 #839731 #319745
monochromatic
#2F133B #532269 #783197 #9B43C2 #B471D1

Accessibility & contrast

On white

7.82
#783197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#783197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #783197
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##783197#FFFFFF#000000##FFFFFF
##7831971.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#2C5495
Tritanopia (blue-blind)
#754560
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #783197;
/* rgb */ color: rgb(120, 49, 151);
/* oklch */ color: oklch(45.9% 0.166 313.8);
Tailwind
colors: {
  custom: {
    50: '#a26fb6',
    500: '#783197',
    950: '#000000',
  },
}
SCSS
$custom: #783197;
$custom-light: #a26fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#783197",
  "rgb": {
    "r": 120,
    "g": 49,
    "b": 151
  },
  "hsl": {
    "h": 281.765,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.45909,
    "c": 0.16647,
    "h": 313.8
  },
  "luminance": 0.08424
}

Semantic roles & 50–950 ramp

primary
#783197
secondary
#83B96B
accent
#DA4D78
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0811
muted
#7F7B80

Preview Lab

Preview with #783197

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

Preview Lab → · Contrast checker → · Palette generator →

#783197 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva