#4A1B9F#4A1B9F

#4A1B9F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.191 H 290.4°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#4A1B9F
RGBrgb(74, 27, 159)
HSLhsl(261, 71%, 36%)
HSVhsv(261, 83%, 62%)
CMYKcmyk(53.5%, 83%, 0%, 37.6%)
CIE-LABlab(25.99, 50.83, -62.23)
CIE-LCHlch(25.99, 80.36, 309.24°)
OKLaboklab(38.54% 0.0666 -0.1789)
OKLCHoklch(38.54% 0.191 290.4)
XYZxyz(9.4722, 4.7425, 33.2105)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1B9F #709F1B
analogous
#1B2E9F #4A1B9F #8C1B9F
triadic
#4A1B9F #9F4A1B #1B9F4A
tetradic
#4A1B9F #9F1B2E #709F1B #1B9F8C
square
#4A1B9F #9F1B2E #709F1B #1B9F8C
split-complementary
#4A1B9F #9F8C1B #2E9F1B
monochromatic
#190936 #32126B #4A1B9F #6224D3 #8653E2

Accessibility & contrast

On white

10.78
#4A1B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4A1B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1B9F
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1B9F#FFFFFF#000000##FFFFFF
##4A1B9F1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#003A9D
Tritanopia (blue-blind)
#2A435F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4a1b9f;
/* rgb */ color: rgb(74, 27, 159);
/* oklch */ color: oklch(38.5% 0.191 290.4);
Tailwind
colors: {
  custom: {
    50: '#875fbd',
    500: '#4a1b9f',
    950: '#000000',
  },
}
SCSS
$custom: #4a1b9f;
$custom-light: #875fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1b9f",
  "rgb": {
    "r": 74,
    "g": 27,
    "b": 159
  },
  "hsl": {
    "h": 261.364,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38535,
    "c": 0.19093,
    "h": 290.4
  },
  "luminance": 0.04743
}

Semantic roles & 50–950 ramp

primary
#4A1B9F
secondary
#9CC551
accent
#EE3AAE
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4A1B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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