#4A1B8E#4A1B8E

#4A1B8E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.172 H 294.8°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#4A1B8E
RGBrgb(74, 27, 142)
HSLhsl(265, 68%, 33%)
HSVhsv(265, 81%, 56%)
CMYKcmyk(47.9%, 81%, 0%, 44.3%)
CIE-LABlab(24.30, 46.31, -54.55)
CIE-LCHlch(24.30, 71.56, 310.33°)
OKLaboklab(36.85% 0.0724 -0.1565)
OKLCHoklch(36.85% 0.172 294.8)
XYZxyz(8.0971, 4.1925, 25.9685)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1B8E #5F8E1B
analogous
#1B258E #4A1B8E #831B8E
triadic
#4A1B8E #8E4A1B #1B8E4A
tetradic
#4A1B8E #8E1B25 #5F8E1B #1B8E83
square
#4A1B8E #8E1B25 #5F8E1B #1B8E83
split-complementary
#4A1B8E #8E831B #258E1B
monochromatic
#140727 #2F115B #4A1B8E #6525C1 #8447DC

Accessibility & contrast

On white

11.42
#4A1B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4A1B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1B8E
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1B8E#FFFFFF#000000##FFFFFF
##4A1B8E1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#363C55
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4a1b8e;
/* rgb */ color: rgb(74, 27, 142);
/* oklch */ color: oklch(36.9% 0.172 294.8);
Tailwind
colors: {
  custom: {
    50: '#845eb0',
    500: '#4a1b8e',
    950: '#000000',
  },
}
SCSS
$custom: #4a1b8e;
$custom-light: #845eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1b8e",
  "rgb": {
    "r": 74,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 264.522,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36855,
    "c": 0.17241,
    "h": 294.8
  },
  "luminance": 0.04193
}

Semantic roles & 50–950 ramp

primary
#4A1B8E
secondary
#8DBE47
accent
#EB3DA4
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4A1B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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