#4A17A0#4A17A0

#4A17A0 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.3% C 0.195 H 290.6°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#4A17A0
RGBrgb(74, 23, 160)
HSLhsl(262, 75%, 36%)
HSVhsv(262, 86%, 63%)
CMYKcmyk(53.7%, 85.6%, 0%, 37.3%)
CIE-LABlab(25.58, 52.59, -63.51)
CIE-LCHlch(25.58, 82.46, 309.63°)
OKLaboklab(38.29% 0.0685 -0.1826)
OKLCHoklch(38.29% 0.195 290.6)
XYZxyz(9.4738, 4.6063, 33.6408)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A17A0 #6DA017
analogous
#1728A0 #4A17A0 #8E17A0
triadic
#4A17A0 #A04A17 #17A04A
tetradic
#4A17A0 #A01728 #6DA017 #17A08E
square
#4A17A0 #A01728 #6DA017 #17A08E
split-complementary
#4A17A0 #A08E17 #28A017
monochromatic
#190835 #310F6A #4A17A0 #631FD6 #854CE5

Accessibility & contrast

On white

10.93
#4A17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4A17A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A17A0
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A17A0#FFFFFF#000000##FFFFFF
##4A17A01.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA4
Deuteranopia (green-blind)
#00399E
Tritanopia (blue-blind)
#29425E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4a17a0;
/* rgb */ color: rgb(74, 23, 160);
/* oklch */ color: oklch(38.3% 0.195 290.6);
Tailwind
colors: {
  custom: {
    50: '#875dbd',
    500: '#4a17a0',
    950: '#000000',
  },
}
SCSS
$custom: #4a17a0;
$custom-light: #875dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#4a17a0",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 262.336,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38287,
    "c": 0.19507,
    "h": 290.6
  },
  "luminance": 0.04607
}

Semantic roles & 50–950 ramp

primary
#4A17A0
secondary
#99C74C
accent
#F136AC
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4A17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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