#4A27AA#4A27AA

#4A27AA is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.192 H 286.6°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#4A27AA
RGBrgb(74, 39, 170)
HSLhsl(256, 63%, 41%)
HSVhsv(256, 77%, 67%)
CMYKcmyk(56.5%, 77.1%, 0%, 33.3%)
CIE-LABlab(28.92, 48.56, -64.06)
CIE-LCHlch(28.92, 80.39, 307.16°)
OKLaboklab(40.91% 0.0549 -0.1844)
OKLCHoklch(40.91% 0.192 286.6)
XYZxyz(10.8031, 5.8086, 38.5743)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A27AA #87AA27
analogous
#2745AA #4A27AA #8B27AA
triadic
#4A27AA #AA4A27 #27AA4A
tetradic
#4A27AA #AA2745 #87AA27 #27AA8B
square
#4A27AA #AA2745 #87AA27 #27AA8B
split-complementary
#4A27AA #AA8B27 #45AA27
monochromatic
#1F1046 #341C78 #4A27AA #643CD2 #8C6EDE

Accessibility & contrast

On white

9.71
#4A27AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4A27AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A27AA
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A27AA#FFFFFF#000000##FFFFFF
##4A27AA1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AE
Deuteranopia (green-blind)
#0040A8
Tritanopia (blue-blind)
#1D4C67
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4a27aa;
/* rgb */ color: rgb(74, 39, 170);
/* oklch */ color: oklch(40.9% 0.192 286.6);
Tailwind
colors: {
  custom: {
    50: '#8866c4',
    500: '#4a27aa',
    950: '#000000',
  },
}
SCSS
$custom: #4a27aa;
$custom-light: #8866c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a27aa",
  "rgb": {
    "r": 74,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 256.031,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40906,
    "c": 0.19242,
    "h": 286.6
  },
  "luminance": 0.05809
}

Semantic roles & 50–950 ramp

primary
#4A27AA
secondary
#ACC469
accent
#E642BA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4A27AA

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

Preview Lab → · Contrast checker → · Palette generator →

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