#784BAF#784BAF

#784BAF is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.2% C 0.155 H 302.0°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#784BAF
RGBrgb(120, 75, 175)
HSLhsl(267, 40%, 49%)
HSVhsv(267, 57%, 69%)
CMYKcmyk(31.4%, 57.1%, 0%, 31.4%)
CIE-LABlab(41.41, 39.68, -46.54)
CIE-LCHlch(41.41, 61.16, 310.45°)
OKLaboklab(51.17% 0.0821 -0.1316)
OKLCHoklch(51.17% 0.155 302)
XYZxyz(17.9979, 12.1203, 41.9404)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784BAF #82AF4B
analogous
#4B50AF #784BAF #AA4BAF
triadic
#784BAF #AF784B #4BAF78
tetradic
#784BAF #AF4B50 #82AF4B #4BAFAA
square
#784BAF #AF4B50 #82AF4B #4BAFAA
split-complementary
#784BAF #AFAA4B #50AF4B
monochromatic
#3D2659 #5B3984 #784BAF #9874C3 #B79FD6

Accessibility & contrast

On white

6.13
#784BAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#784BAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784BAF
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784BAF#FFFFFF#000000##FFFFFF
##784BAF1.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2161B2
Deuteranopia (green-blind)
#3261AD
Tritanopia (blue-blind)
#6D5F76
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #784baf;
/* rgb */ color: rgb(120, 75, 175);
/* oklch */ color: oklch(51.2% 0.155 302.0);
Tailwind
colors: {
  custom: {
    50: '#a27fc7',
    500: '#784baf',
    950: '#000000',
  },
}
SCSS
$custom: #784baf;
$custom-light: #a27fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#784baf",
  "rgb": {
    "r": 120,
    "g": 75,
    "b": 175
  },
  "hsl": {
    "h": 267,
    "s": 40,
    "l": 49.02
  },
  "oklch": {
    "l": 0.51165,
    "c": 0.15506,
    "h": 302
  },
  "luminance": 0.1212
}

Semantic roles & 50–950 ramp

primary
#784BAF
secondary
#ADC293
accent
#D0589A
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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