#78339B#78339B

#78339B is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.4% C 0.168 H 312.2°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#78339B
RGBrgb(120, 51, 155)
HSLhsl(280, 50%, 40%)
HSVhsv(280, 67%, 61%)
CMYKcmyk(22.6%, 67.1%, 0%, 39.2%)
CIE-LABlab(35.45, 47.48, -44.13)
CIE-LCHlch(35.45, 64.82, 317.10°)
OKLaboklab(46.43% 0.1127 -0.1244)
OKLCHoklch(46.43% 0.168 312.2)
XYZxyz(14.8449, 8.7277, 31.9066)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78339B #569B33
analogous
#44339B #78339B #9B338A
triadic
#78339B #9B7833 #339B78
tetradic
#78339B #9B4433 #569B33 #338A9B
square
#78339B #9B4433 #569B33 #338A9B
split-complementary
#78339B #8A9B33 #339B44
monochromatic
#31153F #54246D #78339B #9A48C3 #B376D2

Accessibility & contrast

On white

7.65
#78339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#78339B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78339B
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78339B#FFFFFF#000000##FFFFFF
##78339B1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509E
Deuteranopia (green-blind)
#2A5599
Tritanopia (blue-blind)
#744862
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #78339b;
/* rgb */ color: rgb(120, 51, 155);
/* oklch */ color: oklch(46.4% 0.168 312.2);
Tailwind
colors: {
  custom: {
    50: '#a270b9',
    500: '#78339b',
    950: '#000000',
  },
}
SCSS
$custom: #78339b;
$custom-light: #a270b9;
$custom-dark: #000000;
JSON
{
  "hex": "#78339b",
  "rgb": {
    "r": 120,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 279.808,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46427,
    "c": 0.16783,
    "h": 312.2
  },
  "luminance": 0.08727
}

Semantic roles & 50–950 ramp

primary
#78339B
secondary
#89BA6F
accent
#DA4E7D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0811
muted
#7F7B80

Preview Lab

Preview with #78339B

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

Preview Lab → · Contrast checker → · Palette generator →

#78339B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva