#4A27BD#4A27BD

#4A27BD is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.8% C 0.214 H 283.3°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#4A27BD
RGBrgb(74, 39, 189)
HSLhsl(254, 66%, 45%)
HSVhsv(254, 79%, 74%)
CMYKcmyk(60.8%, 79.4%, 0%, 25.9%)
CIE-LABlab(30.83, 53.97, -72.24)
CIE-LCHlch(30.83, 90.18, 306.76°)
OKLaboklab(42.81% 0.0493 -0.2083)
OKLCHoklch(42.81% 0.214 283.3)
XYZxyz(12.7320, 6.5801, 48.7334)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A27BD #9ABD27
analogous
#274FBD #4A27BD #9527BD
triadic
#4A27BD #BD4A27 #27BD4A
tetradic
#4A27BD #BD274F #9ABD27 #27BD95
square
#4A27BD #BD274F #9ABD27 #27BD95
split-complementary
#4A27BD #BD9527 #4FBD27
monochromatic
#221258 #361D8A #4A27BD #6A48D9 #937BE4

Accessibility & contrast

On white

9.07
#4A27BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4A27BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A27BD
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A27BD#FFFFFF#000000##FFFFFF
##4A27BD1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC1
Deuteranopia (green-blind)
#0043BA
Tritanopia (blue-blind)
#005472
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4a27bd;
/* rgb */ color: rgb(74, 39, 189);
/* oklch */ color: oklch(42.8% 0.214 283.3);
Tailwind
colors: {
  custom: {
    50: '#8b67d2',
    500: '#4a27bd',
    950: '#000000',
  },
}
SCSS
$custom: #4a27bd;
$custom-light: #8b67d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a27bd",
  "rgb": {
    "r": 74,
    "g": 39,
    "b": 189
  },
  "hsl": {
    "h": 254,
    "s": 65.789,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42807,
    "c": 0.21407,
    "h": 283.3
  },
  "luminance": 0.06581
}

Semantic roles & 50–950 ramp

primary
#4A27BD
secondary
#B7CC74
accent
#E93FC1
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4A27BD

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

Preview Lab → · Contrast checker → · Palette generator →

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