#784FAF#784FAF

#784FAF is a mid, vivid violet. Relative luminance 0.127; OKLCH L 51.8% C 0.149 H 301.1°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#784FAF
RGBrgb(120, 79, 175)
HSLhsl(266, 38%, 50%)
HSVhsv(266, 55%, 69%)
CMYKcmyk(31.4%, 54.9%, 0%, 31.4%)
CIE-LABlab(42.28, 37.41, -45.15)
CIE-LCHlch(42.28, 58.63, 309.64°)
OKLaboklab(51.81% 0.0768 -0.1275)
OKLCHoklch(51.81% 0.149 301.1)
XYZxyz(18.2778, 12.6801, 42.0337)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784FAF #86AF4F
analogous
#4F56AF #784FAF #A84FAF
triadic
#784FAF #AF784F #4FAF78
tetradic
#784FAF #AF4F56 #86AF4F #4FAFA8
square
#784FAF #AF4F56 #86AF4F #4FAFA8
split-complementary
#784FAF #AFA84F #56AF4F
monochromatic
#3E295B #5B3C85 #784FAF #9879C2 #B9A3D5

Accessibility & contrast

On white

5.94
#784FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#784FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784FAF
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784FAF#FFFFFF#000000##FFFFFF
##784FAF1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A63B2
Deuteranopia (green-blind)
#3763AD
Tritanopia (blue-blind)
#6D6277
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #784faf;
/* rgb */ color: rgb(120, 79, 175);
/* oklch */ color: oklch(51.8% 0.149 301.1);
Tailwind
colors: {
  custom: {
    50: '#a282c7',
    500: '#784faf',
    950: '#000000',
  },
}
SCSS
$custom: #784faf;
$custom-light: #a282c7;
$custom-dark: #000000;
JSON
{
  "hex": "#784faf",
  "rgb": {
    "r": 120,
    "g": 79,
    "b": 175
  },
  "hsl": {
    "h": 265.625,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51806,
    "c": 0.14884,
    "h": 301.1
  },
  "luminance": 0.1268
}

Semantic roles & 50–950 ramp

primary
#784FAF
secondary
#B0C397
accent
#CE5A9C
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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