#4A1B9E#4A1B9E

#4A1B9E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.190 H 290.6°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#4A1B9E
RGBrgb(74, 27, 158)
HSLhsl(262, 71%, 36%)
HSVhsv(262, 83%, 62%)
CMYKcmyk(53.2%, 82.9%, 0%, 38%)
CIE-LABlab(25.89, 50.57, -61.79)
CIE-LCHlch(25.89, 79.84, 309.29°)
OKLaboklab(38.43% 0.0669 -0.1777)
OKLCHoklch(38.43% 0.19 290.6)
XYZxyz(9.3858, 4.7079, 32.7553)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1B9E #6F9E1B
analogous
#1B2D9E #4A1B9E #8C1B9E
triadic
#4A1B9E #9E4A1B #1B9E4A
tetradic
#4A1B9E #9E1B2D #6F9E1B #1B9E8C
square
#4A1B9E #9E1B2D #6F9E1B #1B9E8C
split-complementary
#4A1B9E #9E8C1B #2D9E1B
monochromatic
#190935 #32126A #4A1B9E #6224D2 #8552E1

Accessibility & contrast

On white

10.82
#4A1B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4A1B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1B9E
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1B9E#FFFFFF#000000##FFFFFF
##4A1B9E1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA2
Deuteranopia (green-blind)
#003A9C
Tritanopia (blue-blind)
#2B425E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4a1b9e;
/* rgb */ color: rgb(74, 27, 158);
/* oklch */ color: oklch(38.4% 0.190 290.6);
Tailwind
colors: {
  custom: {
    50: '#865fbc',
    500: '#4a1b9e',
    950: '#000000',
  },
}
SCSS
$custom: #4a1b9e;
$custom-light: #865fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1b9e",
  "rgb": {
    "r": 74,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 261.527,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38434,
    "c": 0.18985,
    "h": 290.6
  },
  "luminance": 0.04708
}

Semantic roles & 50–950 ramp

primary
#4A1B9E
secondary
#9BC451
accent
#EE3AAD
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4A1B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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