#4A177F#4A177F

#4A177F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.160 H 300.1°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#4A177F
RGBrgb(74, 23, 127)
HSLhsl(269, 69%, 29%)
HSVhsv(269, 82%, 50%)
CMYKcmyk(41.7%, 81.9%, 0%, 50.2%)
CIE-LABlab(22.31, 44.08, -48.40)
CIE-LCHlch(22.31, 65.46, 312.32°)
OKLaboklab(35.04% 0.0804 -0.1384)
OKLCHoklch(35.04% 0.16 300.1)
XYZxyz(6.9602, 3.6009, 20.4029)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A177F #4C7F17
analogous
#17187F #4A177F #7E177F
triadic
#4A177F #7F4A17 #177F4A
tetradic
#4A177F #7F1718 #4C7F17 #177F7E
square
#4A177F #7F1718 #4C7F17 #177F7E
split-complementary
#4A177F #7F7E17 #187F17
monochromatic
#0F051A #2C0E4B #4A177F #6820B3 #8736DB

Accessibility & contrast

On white

12.21
#4A177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4A177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A177F
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A177F#FFFFFF#000000##FFFFFF
##4A177F1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#3D344B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a177f;
/* rgb */ color: rgb(74, 23, 127);
/* oklch */ color: oklch(35.0% 0.160 300.1);
Tailwind
colors: {
  custom: {
    50: '#825ba5',
    500: '#4a177f',
    950: '#000000',
  },
}
SCSS
$custom: #4a177f;
$custom-light: #825ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a177f",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 269.423,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35036,
    "c": 0.16004,
    "h": 300.1
  },
  "luminance": 0.03601
}

Semantic roles & 50–950 ramp

primary
#4A177F
secondary
#7AB43E
accent
#EC3C96
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A177F

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

Preview Lab → · Contrast checker → · Palette generator →

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