#4A1B82#4A1B82

#4A1B82 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.159 H 298.5°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#4A1B82
RGBrgb(74, 27, 130)
HSLhsl(267, 66%, 31%)
HSVhsv(267, 79%, 51%)
CMYKcmyk(43.1%, 79.2%, 0%, 49%)
CIE-LABlab(23.17, 43.14, -48.88)
CIE-LCHlch(23.17, 65.20, 311.43°)
OKLaboklab(35.73% 0.0761 -0.1398)
OKLCHoklch(35.73% 0.159 298.5)
XYZxyz(7.2442, 3.8513, 21.4765)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1B82 #53821B
analogous
#1B1F82 #4A1B82 #7D1B82
triadic
#4A1B82 #824A1B #1B824A
tetradic
#4A1B82 #821B1F #53821B #1B827D
square
#4A1B82 #821B1F #53821B #1B827D
split-complementary
#4A1B82 #827D1B #1F821B
monochromatic
#10061D #2D104F #4A1B82 #6726B5 #8540D7

Accessibility & contrast

On white

11.86
#4A1B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4A1B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1B82
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1B82#FFFFFF#000000##FFFFFF
##4A1B821.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003680
Tritanopia (blue-blind)
#3C374E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4a1b82;
/* rgb */ color: rgb(74, 27, 130);
/* oklch */ color: oklch(35.7% 0.159 298.5);
Tailwind
colors: {
  custom: {
    50: '#835da7',
    500: '#4a1b82',
    950: '#000000',
  },
}
SCSS
$custom: #4a1b82;
$custom-light: #835da7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1b82",
  "rgb": {
    "r": 74,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 267.379,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35726,
    "c": 0.15918,
    "h": 298.5
  },
  "luminance": 0.03851
}

Semantic roles & 50–950 ramp

primary
#4A1B82
secondary
#81B643
accent
#E93F9B
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #4A1B82

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

Preview Lab → · Contrast checker → · Palette generator →

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