#74178D#74178D

#74178D is a dark, vivid purple. Relative luminance 0.062; OKLCH L 42.1% C 0.185 H 317.6°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#74178D
RGBrgb(116, 23, 141)
HSLhsl(287, 72%, 32%)
HSVhsv(287, 84%, 55%)
CMYKcmyk(17.7%, 83.7%, 0%, 44.7%)
CIE-LABlab(30.03, 54.60, -44.32)
CIE-LCHlch(30.03, 70.32, 320.93°)
OKLaboklab(42.14% 0.1367 -0.1249)
OKLCHoklch(42.14% 0.185 317.6)
XYZxyz(12.3159, 6.2494, 25.7517)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#74178D #308D17
analogous
#39178D #74178D #8D176B
triadic
#74178D #8D7417 #178D74
tetradic
#74178D #8D3917 #308D17 #176B8D
square
#74178D #8D3917 #308D17 #176B8D
split-complementary
#74178D #6B8D17 #178D39
monochromatic
#1D0624 #490E58 #74178D #9F20C2 #BE3FE0

Accessibility & contrast

On white

9.33
#74178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#74178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #74178D
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##74178D#FFFFFF#000000##FFFFFF
##74178D1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#1B498B
Tritanopia (blue-blind)
#733354
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #74178d;
/* rgb */ color: rgb(116, 23, 141);
/* oklch */ color: oklch(42.1% 0.185 317.6);
Tailwind
colors: {
  custom: {
    50: '#a062af',
    500: '#74178d',
    950: '#000000',
  },
}
SCSS
$custom: #74178d;
$custom-light: #a062af;
$custom-dark: #000000;
JSON
{
  "hex": "#74178d",
  "rgb": {
    "r": 116,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 287.288,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.4214,
    "c": 0.18514,
    "h": 317.6
  },
  "luminance": 0.06249
}

Semantic roles & 50–950 ramp

primary
#74178D
secondary
#5BC040
accent
#EF3960
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #74178D

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

Preview Lab → · Contrast checker → · Palette generator →

#74178D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva