#4A27B6#4A27B6

#4A27B6 is a dark, highly saturated violet. Relative luminance 0.063; OKLCH L 42.1% C 0.206 H 284.5°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#4A27B6
RGBrgb(74, 39, 182)
HSLhsl(255, 65%, 43%)
HSVhsv(255, 79%, 71%)
CMYKcmyk(59.3%, 78.6%, 0%, 28.6%)
CIE-LABlab(30.12, 51.99, -69.27)
CIE-LCHlch(30.12, 86.61, 306.89°)
OKLaboklab(42.1% 0.0515 -0.1996)
OKLCHoklch(42.1% 0.206 284.5)
XYZxyz(11.9905, 6.2835, 44.8279)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A27B6 #93B627
analogous
#274CB6 #4A27B6 #9127B6
triadic
#4A27B6 #B64A27 #27B64A
tetradic
#4A27B6 #B6274C #93B627 #27B691
square
#4A27B6 #B6274C #93B627 #27B691
split-complementary
#4A27B6 #B69127 #4CB627
monochromatic
#211151 #361C84 #4A27B6 #6743D7 #9076E2

Accessibility & contrast

On white

9.31
#4A27B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4A27B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A27B6
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A27B6#FFFFFF#000000##FFFFFF
##4A27B61.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBA
Deuteranopia (green-blind)
#0042B3
Tritanopia (blue-blind)
#03516E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4a27b6;
/* rgb */ color: rgb(74, 39, 182);
/* oklch */ color: oklch(42.1% 0.206 284.5);
Tailwind
colors: {
  custom: {
    50: '#8a66cd',
    500: '#4a27b6',
    950: '#000000',
  },
}
SCSS
$custom: #4a27b6;
$custom-light: #8a66cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4a27b6",
  "rgb": {
    "r": 74,
    "g": 39,
    "b": 182
  },
  "hsl": {
    "h": 254.685,
    "s": 64.706,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42097,
    "c": 0.20616,
    "h": 284.5
  },
  "luminance": 0.06284
}

Semantic roles & 50–950 ramp

primary
#4A27B6
secondary
#B3C970
accent
#E840BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4A27B6

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

Preview Lab → · Contrast checker → · Palette generator →

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