#784FB2#784FB2

#784FB2 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.0% C 0.153 H 300.3°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#784FB2
RGBrgb(120, 79, 178)
HSLhsl(265, 39%, 50%)
HSVhsv(265, 56%, 70%)
CMYKcmyk(32.6%, 55.6%, 0%, 30.2%)
CIE-LABlab(42.46, 38.18, -46.63)
CIE-LCHlch(42.46, 60.26, 309.31°)
OKLaboklab(52% 0.0769 -0.1318)
OKLCHoklch(52% 0.153 300.3)
XYZxyz(18.5757, 12.7993, 43.6027)
Luminance0.1280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784FB2 #89B24F
analogous
#4F58B2 #784FB2 #A94FB2
triadic
#784FB2 #B2784F #4FB278
tetradic
#784FB2 #B24F58 #89B24F #4FB2A9
square
#784FB2 #B24F58 #89B24F #4FB2A9
split-complementary
#784FB2 #B2A94F #58B24F
monochromatic
#3F295E #5B3C88 #784FB2 #997AC5 #B9A4D7

Accessibility & contrast

On white

5.90
#784FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#784FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784FB2
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784FB2#FFFFFF#000000##FFFFFF
##784FB21.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2664B5
Deuteranopia (green-blind)
#3464B0
Tritanopia (blue-blind)
#6C6379
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #784fb2;
/* rgb */ color: rgb(120, 79, 178);
/* oklch */ color: oklch(52.0% 0.153 300.3);
Tailwind
colors: {
  custom: {
    50: '#a282c9',
    500: '#784fb2',
    950: '#000000',
  },
}
SCSS
$custom: #784fb2;
$custom-light: #a282c9;
$custom-dark: #000000;
JSON
{
  "hex": "#784fb2",
  "rgb": {
    "r": 120,
    "g": 79,
    "b": 178
  },
  "hsl": {
    "h": 264.848,
    "s": 39.13,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51998,
    "c": 0.15262,
    "h": 300.3
  },
  "luminance": 0.12799
}

Semantic roles & 50–950 ramp

primary
#784FB2
secondary
#B2C498
accent
#CF599E
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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