#784198#784198

#784198 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.2% C 0.143 H 311.4°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#784198
RGBrgb(120, 65, 152)
HSLhsl(278, 40%, 43%)
HSVhsv(278, 57%, 60%)
CMYKcmyk(21.1%, 57.2%, 0%, 40.4%)
CIE-LABlab(37.92, 39.61, -38.38)
CIE-LCHlch(37.92, 55.15, 315.91°)
OKLaboklab(48.16% 0.0947 -0.1076)
OKLCHoklch(48.16% 0.143 311.4)
XYZxyz(15.3025, 10.0410, 30.8317)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784198 #619841
analogous
#4D4198 #784198 #98418C
triadic
#784198 #987841 #419878
tetradic
#784198 #984D41 #619841 #418C98
square
#784198 #984D41 #619841 #418C98
split-complementary
#784198 #8C9841 #41984D
monochromatic
#341C42 #562F6D #784198 #975DBA #B388CC

Accessibility & contrast

On white

6.98
#784198 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#784198 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784198
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784198#FFFFFF#000000##FFFFFF
##7841981.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27579B
Deuteranopia (green-blind)
#3A5A96
Tritanopia (blue-blind)
#745066
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #784198;
/* rgb */ color: rgb(120, 65, 152);
/* oklch */ color: oklch(48.2% 0.143 311.4);
Tailwind
colors: {
  custom: {
    50: '#a178b7',
    500: '#784198',
    950: '#000000',
  },
}
SCSS
$custom: #784198;
$custom-light: #a178b7;
$custom-dark: #000000;
JSON
{
  "hex": "#784198",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 152
  },
  "hsl": {
    "h": 277.931,
    "s": 40.092,
    "l": 42.549
  },
  "oklch": {
    "l": 0.48155,
    "c": 0.14337,
    "h": 311.4
  },
  "luminance": 0.10041
}

Semantic roles & 50–950 ramp

primary
#784198
secondary
#93B77E
accent
#D05884
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#0F0911
muted
#7F7B80

Preview Lab

Preview with #784198

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

Preview Lab → · Contrast checker → · Palette generator →

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