#4A1BB4#4A1BB4

#4A1BB4 is a dark, highly saturated violet. Relative luminance 0.055; OKLCH L 40.7% C 0.213 H 286.0°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#4A1BB4
RGBrgb(74, 27, 180)
HSLhsl(258, 74%, 41%)
HSVhsv(258, 85%, 71%)
CMYKcmyk(58.9%, 85%, 0%, 29.4%)
CIE-LABlab(28.21, 56.41, -71.24)
CIE-LCHlch(28.21, 90.87, 308.37°)
OKLaboklab(40.72% 0.0588 -0.2052)
OKLCHoklch(40.72% 0.213 286)
XYZxyz(11.4517, 5.5343, 43.6360)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1BB4 #85B41B
analogous
#1B39B4 #4A1BB4 #961BB4
triadic
#4A1BB4 #B44A1B #1BB44A
tetradic
#4A1BB4 #B41B39 #85B41B #1BB496
square
#4A1BB4 #B41B39 #85B41B #1BB496
split-complementary
#4A1BB4 #B4961B #39B41B
monochromatic
#1E0B4A #34137F #4A1BB4 #642DDF #8B62E7

Accessibility & contrast

On white

9.97
#4A1BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4A1BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1BB4
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1BB4#FFFFFF#000000##FFFFFF
##4A1BB41.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B8
Deuteranopia (green-blind)
#003EB1
Tritanopia (blue-blind)
#0C4C6B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4a1bb4;
/* rgb */ color: rgb(74, 27, 180);
/* oklch */ color: oklch(40.7% 0.213 286.0);
Tailwind
colors: {
  custom: {
    50: '#8a60cc',
    500: '#4a1bb4',
    950: '#000000',
  },
}
SCSS
$custom: #4a1bb4;
$custom-light: #8a60cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1bb4",
  "rgb": {
    "r": 74,
    "g": 27,
    "b": 180
  },
  "hsl": {
    "h": 258.431,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40716,
    "c": 0.21347,
    "h": 286
  },
  "luminance": 0.05535
}

Semantic roles & 50–950 ramp

primary
#4A1BB4
secondary
#AACC5F
accent
#F137B8
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0514
muted
#7E7A82

Preview Lab

Preview with #4A1BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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