#4A27A3#4A27A3

#4A27A3 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.184 H 288.0°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#4A27A3
RGBrgb(74, 39, 163)
HSLhsl(257, 61%, 40%)
HSVhsv(257, 76%, 64%)
CMYKcmyk(54.6%, 76.1%, 0%, 36.1%)
CIE-LABlab(28.25, 46.55, -60.95)
CIE-LCHlch(28.25, 76.69, 307.37°)
OKLaboklab(40.23% 0.0568 -0.1753)
OKLCHoklch(40.23% 0.184 288)
XYZxyz(10.1585, 5.5507, 35.1794)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A27A3 #80A327
analogous
#2742A3 #4A27A3 #8827A3
triadic
#4A27A3 #A34A27 #27A34A
tetradic
#4A27A3 #A32742 #80A327 #27A388
square
#4A27A3 #A32742 #80A327 #27A388
split-complementary
#4A27A3 #A38827 #42A327
monochromatic
#1D0F40 #341B72 #4A27A3 #6338CF #8969DB

Accessibility & contrast

On white

9.95
#4A27A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4A27A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A27A3
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A27A3#FFFFFF#000000##FFFFFF
##4A27A31.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A7
Deuteranopia (green-blind)
#003FA1
Tritanopia (blue-blind)
#264A63
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4a27a3;
/* rgb */ color: rgb(74, 39, 163);
/* oklch */ color: oklch(40.2% 0.184 288.0);
Tailwind
colors: {
  custom: {
    50: '#8665bf',
    500: '#4a27a3',
    950: '#000000',
  },
}
SCSS
$custom: #4a27a3;
$custom-light: #8665bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4a27a3",
  "rgb": {
    "r": 74,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 256.935,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40228,
    "c": 0.18428,
    "h": 288
  },
  "luminance": 0.05551
}

Semantic roles & 50–950 ramp

primary
#4A27A3
secondary
#A7C164
accent
#E443B7
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A27A3

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

Preview Lab → · Contrast checker → · Palette generator →

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