#4A27AE#4A27AE

#4A27AE is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.197 H 285.8°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#4A27AE
RGBrgb(74, 39, 174)
HSLhsl(256, 63%, 42%)
HSVhsv(256, 78%, 68%)
CMYKcmyk(57.5%, 77.6%, 0%, 31.8%)
CIE-LABlab(29.32, 49.71, -65.82)
CIE-LCHlch(29.32, 82.48, 307.06°)
OKLaboklab(41.3% 0.0538 -0.1895)
OKLCHoklch(41.3% 0.197 285.8)
XYZxyz(11.1872, 5.9622, 40.5975)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A27AE #8BAE27
analogous
#2747AE #4A27AE #8E27AE
triadic
#4A27AE #AE4A27 #27AE4A
tetradic
#4A27AE #AE2747 #8BAE27 #27AE8E
square
#4A27AE #AE2747 #8BAE27 #27AE8E
split-complementary
#4A27AE #AE8E27 #47AE27
monochromatic
#1F114A #351C7C #4A27AE #653ED4 #8D70DF

Accessibility & contrast

On white

9.58
#4A27AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4A27AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A27AE
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A27AE#FFFFFF#000000##FFFFFF
##4A27AE1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B2
Deuteranopia (green-blind)
#0041AC
Tritanopia (blue-blind)
#174E6A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4a27ae;
/* rgb */ color: rgb(74, 39, 174);
/* oklch */ color: oklch(41.3% 0.197 285.8);
Tailwind
colors: {
  custom: {
    50: '#8866c7',
    500: '#4a27ae',
    950: '#000000',
  },
}
SCSS
$custom: #4a27ae;
$custom-light: #8866c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a27ae",
  "rgb": {
    "r": 74,
    "g": 39,
    "b": 174
  },
  "hsl": {
    "h": 255.556,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41299,
    "c": 0.19703,
    "h": 285.8
  },
  "luminance": 0.05963
}

Semantic roles & 50–950 ramp

primary
#4A27AE
secondary
#AEC66B
accent
#E641BC
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4A27AE

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

Preview Lab → · Contrast checker → · Palette generator →

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