#78247B#78247B

#78247B is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.6% C 0.157 H 326.5°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#78247B
RGBrgb(120, 36, 123)
HSLhsl(298, 55%, 31%)
HSVhsv(298, 71%, 48%)
CMYKcmyk(2.4%, 70.7%, 0%, 51.8%)
CIE-LABlab(31.08, 47.56, -31.36)
CIE-LCHlch(31.08, 56.97, 326.60°)
OKLaboklab(42.64% 0.1312 -0.087)
OKLCHoklch(42.64% 0.157 326.5)
XYZxyz(11.9515, 6.6857, 19.3960)
Luminance0.0669 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78247B #277B24
analogous
#4C247B #78247B #7B2452
triadic
#78247B #7B7824 #247B78
tetradic
#78247B #7B4C24 #277B24 #24527B
square
#78247B #7B4C24 #277B24 #24527B
split-complementary
#78247B #527B24 #247B4C
monochromatic
#1C081C #4A164C #78247B #A632AA #C74ECB

Accessibility & contrast

On white

8.99
#78247B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#78247B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78247B
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78247B#FFFFFF#000000##FFFFFF
##78247B1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13427D
Deuteranopia (green-blind)
#384D79
Tritanopia (blue-blind)
#7B314D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #78247b;
/* rgb */ color: rgb(120, 36, 123);
/* oklch */ color: oklch(42.6% 0.157 326.5);
Tailwind
colors: {
  custom: {
    50: '#a267a1',
    500: '#78247b',
    950: '#000000',
  },
}
SCSS
$custom: #78247b;
$custom-light: #a267a1;
$custom-dark: #000000;
JSON
{
  "hex": "#78247b",
  "rgb": {
    "r": 120,
    "g": 36,
    "b": 123
  },
  "hsl": {
    "h": 297.931,
    "s": 54.717,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42638,
    "c": 0.15737,
    "h": 326.5
  },
  "luminance": 0.06685
}

Semantic roles & 50–950 ramp

primary
#78247B
secondary
#51AD4D
accent
#DE4A4F
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78247B

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

Preview Lab → · Contrast checker → · Palette generator →

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