#4A27BA#4A27BA

#4A27BA is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.5% C 0.211 H 283.8°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#4A27BA
RGBrgb(74, 39, 186)
HSLhsl(254, 65%, 44%)
HSVhsv(254, 79%, 73%)
CMYKcmyk(60.2%, 79%, 0%, 27.1%)
CIE-LABlab(30.52, 53.12, -70.98)
CIE-LCHlch(30.52, 88.66, 306.81°)
OKLaboklab(42.5% 0.0503 -0.2046)
OKLCHoklch(42.5% 0.211 283.8)
XYZxyz(12.4098, 6.4512, 47.0361)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A27BA #97BA27
analogous
#274EBA #4A27BA #9427BA
triadic
#4A27BA #BA4A27 #27BA4A
tetradic
#4A27BA #BA274E #97BA27 #27BA94
square
#4A27BA #BA274E #97BA27 #27BA94
split-complementary
#4A27BA #BA9427 #4EBA27
monochromatic
#221255 #361C87 #4A27BA #6946D8 #9279E3

Accessibility & contrast

On white

9.17
#4A27BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4A27BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A27BA
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A27BA#FFFFFF#000000##FFFFFF
##4A27BA1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBE
Deuteranopia (green-blind)
#0043B7
Tritanopia (blue-blind)
#005370
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4a27ba;
/* rgb */ color: rgb(74, 39, 186);
/* oklch */ color: oklch(42.5% 0.211 283.8);
Tailwind
colors: {
  custom: {
    50: '#8a66d0',
    500: '#4a27ba',
    950: '#000000',
  },
}
SCSS
$custom: #4a27ba;
$custom-light: #8a66d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a27ba",
  "rgb": {
    "r": 74,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 254.286,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42501,
    "c": 0.21069,
    "h": 283.8
  },
  "luminance": 0.06452
}

Semantic roles & 50–950 ramp

primary
#4A27BA
secondary
#B6CB72
accent
#E840C0
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4A27BA

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

Preview Lab → · Contrast checker → · Palette generator →

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