#784EAF#784EAF

#784EAF is a mid, vivid violet. Relative luminance 0.125; OKLCH L 51.6% C 0.150 H 301.3°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#784EAF
RGBrgb(120, 78, 175)
HSLhsl(266, 38%, 50%)
HSVhsv(266, 55%, 69%)
CMYKcmyk(31.4%, 55.4%, 0%, 31.4%)
CIE-LABlab(42.06, 37.98, -45.50)
CIE-LCHlch(42.06, 59.27, 309.85°)
OKLaboklab(51.64% 0.0781 -0.1285)
OKLCHoklch(51.64% 0.15 301.3)
XYZxyz(18.2062, 12.5369, 42.0098)
Luminance0.1254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784EAF #85AF4E
analogous
#4E55AF #784EAF #A94EAF
triadic
#784EAF #AF784E #4EAF78
tetradic
#784EAF #AF4E55 #85AF4E #4EAFA9
square
#784EAF #AF4E55 #85AF4E #4EAFA9
split-complementary
#784EAF #AFA94E #55AF4E
monochromatic
#3E285A #5B3B85 #784EAF #9878C3 #B8A2D6

Accessibility & contrast

On white

5.99
#784EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#784EAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784EAF
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784EAF#FFFFFF#000000##FFFFFF
##784EAF1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2863B2
Deuteranopia (green-blind)
#3663AD
Tritanopia (blue-blind)
#6D6177
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #784eaf;
/* rgb */ color: rgb(120, 78, 175);
/* oklch */ color: oklch(51.6% 0.150 301.3);
Tailwind
colors: {
  custom: {
    50: '#a281c7',
    500: '#784eaf',
    950: '#000000',
  },
}
SCSS
$custom: #784eaf;
$custom-light: #a281c7;
$custom-dark: #000000;
JSON
{
  "hex": "#784eaf",
  "rgb": {
    "r": 120,
    "g": 78,
    "b": 175
  },
  "hsl": {
    "h": 265.979,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51643,
    "c": 0.1504,
    "h": 301.3
  },
  "luminance": 0.12537
}

Semantic roles & 50–950 ramp

primary
#784EAF
secondary
#AFC396
accent
#CE5A9C
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784EAF

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

Preview Lab → · Contrast checker → · Palette generator →

#784EAF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva