#784398#784398

#784398 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.5% C 0.140 H 311.0°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#784398
RGBrgb(120, 67, 152)
HSLhsl(277, 39%, 43%)
HSVhsv(277, 56%, 60%)
CMYKcmyk(21.1%, 55.9%, 0%, 40.4%)
CIE-LABlab(38.33, 38.51, -37.71)
CIE-LCHlch(38.33, 53.90, 315.60°)
OKLaboklab(48.46% 0.092 -0.1057)
OKLCHoklch(48.46% 0.14 311)
XYZxyz(15.4193, 10.2747, 30.8706)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784398 #639843
analogous
#4D4398 #784398 #98438D
triadic
#784398 #987843 #439878
tetradic
#784398 #984D43 #639843 #438D98
square
#784398 #984D43 #639843 #438D98
split-complementary
#784398 #8D9843 #43984D
monochromatic
#351E43 #56306E #784398 #9760B9 #B38ACB

Accessibility & contrast

On white

6.87
#784398 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#784398 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784398
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784398#FFFFFF#000000##FFFFFF
##7843981.006.873.056.87
#FFFFFF6.871.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A589B
Deuteranopia (green-blind)
#3C5B96
Tritanopia (blue-blind)
#745267
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #784398;
/* rgb */ color: rgb(120, 67, 152);
/* oklch */ color: oklch(48.5% 0.140 311.0);
Tailwind
colors: {
  custom: {
    50: '#a179b7',
    500: '#784398',
    950: '#000000',
  },
}
SCSS
$custom: #784398;
$custom-light: #a179b7;
$custom-dark: #000000;
JSON
{
  "hex": "#784398",
  "rgb": {
    "r": 120,
    "g": 67,
    "b": 152
  },
  "hsl": {
    "h": 277.412,
    "s": 38.813,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4846,
    "c": 0.1401,
    "h": 311
  },
  "luminance": 0.10274
}

Semantic roles & 50–950 ramp

primary
#784398
secondary
#95B680
accent
#CF5985
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#0F0911
muted
#7F7B80

Preview Lab

Preview with #784398

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

Preview Lab → · Contrast checker → · Palette generator →

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