#4A27BC#4A27BC

#4A27BC is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.7% C 0.213 H 283.5°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#4A27BC
RGBrgb(74, 39, 188)
HSLhsl(254, 66%, 45%)
HSVhsv(254, 79%, 74%)
CMYKcmyk(60.6%, 79.3%, 0%, 26.3%)
CIE-LABlab(30.73, 53.69, -71.82)
CIE-LCHlch(30.73, 89.67, 306.78°)
OKLaboklab(42.71% 0.0496 -0.2071)
OKLCHoklch(42.71% 0.213 283.5)
XYZxyz(12.6239, 6.5369, 48.1637)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A27BC #99BC27
analogous
#274FBC #4A27BC #9527BC
triadic
#4A27BC #BC4A27 #27BC4A
tetradic
#4A27BC #BC274F #99BC27 #27BC95
square
#4A27BC #BC274F #99BC27 #27BC95
split-complementary
#4A27BC #BC9527 #4FBC27
monochromatic
#221257 #361C89 #4A27BC #6A47D9 #937AE3

Accessibility & contrast

On white

9.10
#4A27BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4A27BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A27BC
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A27BC#FFFFFF#000000##FFFFFF
##4A27BC1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC0
Deuteranopia (green-blind)
#0043B9
Tritanopia (blue-blind)
#005472
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4a27bc;
/* rgb */ color: rgb(74, 39, 188);
/* oklch */ color: oklch(42.7% 0.213 283.5);
Tailwind
colors: {
  custom: {
    50: '#8b67d1',
    500: '#4a27bc',
    950: '#000000',
  },
}
SCSS
$custom: #4a27bc;
$custom-light: #8b67d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a27bc",
  "rgb": {
    "r": 74,
    "g": 39,
    "b": 188
  },
  "hsl": {
    "h": 254.094,
    "s": 65.639,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42705,
    "c": 0.21295,
    "h": 283.5
  },
  "luminance": 0.06538
}

Semantic roles & 50–950 ramp

primary
#4A27BC
secondary
#B7CB73
accent
#E93FC1
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4A27BC

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

Preview Lab → · Contrast checker → · Palette generator →

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