#4A1B8B#4A1B8B

#4A1B8B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.169 H 295.7°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#4A1B8B
RGBrgb(74, 27, 139)
HSLhsl(265, 67%, 33%)
HSVhsv(265, 81%, 55%)
CMYKcmyk(46.8%, 80.6%, 0%, 45.5%)
CIE-LABlab(24.01, 45.51, -53.15)
CIE-LCHlch(24.01, 69.98, 310.57°)
OKLaboklab(36.57% 0.0734 -0.1524)
OKLCHoklch(36.57% 0.169 295.7)
XYZxyz(7.8749, 4.1036, 24.7983)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1B8B #5C8B1B
analogous
#1B248B #4A1B8B #821B8B
triadic
#4A1B8B #8B4A1B #1B8B4A
tetradic
#4A1B8B #8B1B24 #5C8B1B #1B8B82
square
#4A1B8B #8B1B24 #5C8B1B #1B8B82
split-complementary
#4A1B8B #8B821B #248B1B
monochromatic
#130725 #2F1158 #4A1B8B #6525BE #8445DB

Accessibility & contrast

On white

11.53
#4A1B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4A1B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1B8B
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1B8B#FFFFFF#000000##FFFFFF
##4A1B8B1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#383A53
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a1b8b;
/* rgb */ color: rgb(74, 27, 139);
/* oklch */ color: oklch(36.6% 0.169 295.7);
Tailwind
colors: {
  custom: {
    50: '#845eae',
    500: '#4a1b8b',
    950: '#000000',
  },
}
SCSS
$custom: #4a1b8b;
$custom-light: #845eae;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1b8b",
  "rgb": {
    "r": 74,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 265.179,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36568,
    "c": 0.16911,
    "h": 295.7
  },
  "luminance": 0.04104
}

Semantic roles & 50–950 ramp

primary
#4A1B8B
secondary
#8ABC45
accent
#EA3DA2
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4A1B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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