#4A176F#4A176F

#4A176F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.143 H 306.4°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#4A176F
RGBrgb(74, 23, 111)
HSLhsl(275, 66%, 26%)
HSVhsv(275, 79%, 44%)
CMYKcmyk(33.3%, 79.3%, 0%, 56.5%)
CIE-LABlab(20.89, 40.07, -40.47)
CIE-LCHlch(20.89, 56.94, 314.72°)
OKLaboklab(33.61% 0.0848 -0.1151)
OKLCHoklch(33.61% 0.143 306.4)
XYZxyz(5.9991, 3.2164, 15.3406)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A176F #3C6F17
analogous
#1E176F #4A176F #6F1768
triadic
#4A176F #6F4A17 #176F4A
tetradic
#4A176F #6F1E17 #3C6F17 #17686F
square
#4A176F #6F1E17 #3C6F17 #17686F
split-complementary
#4A176F #686F17 #176F1E
monochromatic
#110519 #280C3C #4A176F #6C22A2 #8D2DD3

Accessibility & contrast

On white

12.78
#4A176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4A176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A176F
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A176F#FFFFFF#000000##FFFFFF
##4A176F1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00326D
Tritanopia (blue-blind)
#432D42
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4a176f;
/* rgb */ color: rgb(74, 23, 111);
/* oklch */ color: oklch(33.6% 0.143 306.4);
Tailwind
colors: {
  custom: {
    50: '#815a99',
    500: '#4a176f',
    950: '#000000',
  },
}
SCSS
$custom: #4a176f;
$custom-light: #815a99;
$custom-dark: #000000;
JSON
{
  "hex": "#4a176f",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 274.773,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.33606,
    "c": 0.14293,
    "h": 306.4
  },
  "luminance": 0.03216
}

Semantic roles & 50–950 ramp

primary
#4A176F
secondary
#69A53D
accent
#E93F86
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A176F

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

Preview Lab → · Contrast checker → · Palette generator →

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