#4A178F#4A178F

#4A178F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.177 H 295.0°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#4A178F
RGBrgb(74, 23, 143)
HSLhsl(266, 72%, 33%)
HSVhsv(266, 84%, 56%)
CMYKcmyk(48.3%, 83.9%, 0%, 43.9%)
CIE-LABlab(23.84, 48.18, -55.92)
CIE-LCHlch(23.84, 73.82, 310.75°)
OKLaboklab(36.57% 0.075 -0.1604)
OKLCHoklch(36.57% 0.177 295)
XYZxyz(8.0870, 4.0516, 26.3372)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A178F #5C8F17
analogous
#17208F #4A178F #86178F
triadic
#4A178F #8F4A17 #178F4A
tetradic
#4A178F #8F1720 #5C8F17 #178F86
square
#4A178F #8F1720 #5C8F17 #178F86
split-complementary
#4A178F #8F8617 #208F17
monochromatic
#130626 #2F0F5A #4A178F #651FC4 #8440E0

Accessibility & contrast

On white

11.60
#4A178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4A178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A178F
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A178F#FFFFFF#000000##FFFFFF
##4A178F1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#353B54
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a178f;
/* rgb */ color: rgb(74, 23, 143);
/* oklch */ color: oklch(36.6% 0.177 295.0);
Tailwind
colors: {
  custom: {
    50: '#855cb1',
    500: '#4a178f',
    950: '#000000',
  },
}
SCSS
$custom: #4a178f;
$custom-light: #855cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a178f",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 265.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36568,
    "c": 0.17708,
    "h": 295
  },
  "luminance": 0.04052
}

Semantic roles & 50–950 ramp

primary
#4A178F
secondary
#8AC141
accent
#EF39A2
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4A178F

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

Preview Lab → · Contrast checker → · Palette generator →

#4A178F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva