#4A27AB#4A27AB

#4A27AB is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.194 H 286.4°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#4A27AB
RGBrgb(74, 39, 171)
HSLhsl(256, 63%, 41%)
HSVhsv(256, 77%, 67%)
CMYKcmyk(56.7%, 77.2%, 0%, 32.9%)
CIE-LABlab(29.02, 48.85, -64.50)
CIE-LCHlch(29.02, 80.91, 307.14°)
OKLaboklab(41% 0.0546 -0.1857)
OKLCHoklch(41% 0.194 286.4)
XYZxyz(10.8980, 5.8465, 39.0744)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A27AB #88AB27
analogous
#2746AB #4A27AB #8C27AB
triadic
#4A27AB #AB4A27 #27AB4A
tetradic
#4A27AB #AB2746 #88AB27 #27AB8C
square
#4A27AB #AB2746 #88AB27 #27AB8C
split-complementary
#4A27AB #AB8C27 #46AB27
monochromatic
#1F1047 #341C79 #4A27AB #643DD3 #8C6EDE

Accessibility & contrast

On white

9.68
#4A27AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4A27AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A27AB
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A27AB#FFFFFF#000000##FFFFFF
##4A27AB1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#0041A9
Tritanopia (blue-blind)
#1C4D68
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4a27ab;
/* rgb */ color: rgb(74, 39, 171);
/* oklch */ color: oklch(41.0% 0.194 286.4);
Tailwind
colors: {
  custom: {
    50: '#8866c5',
    500: '#4a27ab',
    950: '#000000',
  },
}
SCSS
$custom: #4a27ab;
$custom-light: #8866c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a27ab",
  "rgb": {
    "r": 74,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 255.909,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41004,
    "c": 0.19357,
    "h": 286.4
  },
  "luminance": 0.05847
}

Semantic roles & 50–950 ramp

primary
#4A27AB
secondary
#ACC569
accent
#E642BA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4A27AB

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

Preview Lab → · Contrast checker → · Palette generator →

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