#78127F#78127F

#78127F is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.5% C 0.179 H 325.2°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#78127F
RGBrgb(120, 18, 127)
HSLhsl(296, 75%, 28%)
HSVhsv(296, 86%, 50%)
CMYKcmyk(5.5%, 85.8%, 0%, 50.2%)
CIE-LABlab(29.31, 54.08, -36.70)
CIE-LCHlch(29.31, 65.36, 325.84°)
OKLaboklab(41.46% 0.1471 -0.1024)
OKLCHoklch(41.46% 0.179 325.2)
XYZxyz(11.7925, 5.9588, 20.6036)
Luminance0.0596 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78127F #197F12
analogous
#41127F #78127F #7F124F
triadic
#78127F #7F7812 #127F78
tetradic
#78127F #7F4112 #197F12 #124F7F
square
#78127F #7F4112 #197F12 #124F7F
split-complementary
#78127F #4F7F12 #127F41
monochromatic
#19041B #450A49 #78127F #AB1AB5 #D52BE1

Accessibility & contrast

On white

9.58
#78127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#78127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78127F
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78127F#FFFFFF#000000##FFFFFF
##78127F1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#2D497D
Tritanopia (blue-blind)
#7B294B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #78127f;
/* rgb */ color: rgb(120, 18, 127);
/* oklch */ color: oklch(41.5% 0.179 325.2);
Tailwind
colors: {
  custom: {
    50: '#a360a5',
    500: '#78127f',
    950: '#000000',
  },
}
SCSS
$custom: #78127f;
$custom-light: #a360a5;
$custom-dark: #000000;
JSON
{
  "hex": "#78127f",
  "rgb": {
    "r": 120,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 296.147,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41456,
    "c": 0.17925,
    "h": 325.2
  },
  "luminance": 0.05958
}

Semantic roles & 50–950 ramp

primary
#78127F
secondary
#40B538
accent
#F23642
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10050F
muted
#7F7A7F

Preview Lab

Preview with #78127F

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

Preview Lab → · Contrast checker → · Palette generator →

#78127F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva