#4B2AB1#4B2AB1

#4B2AB1 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.198 H 285.4°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#4B2AB1
RGBrgb(75, 42, 177)
HSLhsl(255, 62%, 43%)
HSVhsv(255, 76%, 69%)
CMYKcmyk(57.6%, 76.3%, 0%, 30.6%)
CIE-LABlab(30.22, 49.24, -66.12)
CIE-LCHlch(30.22, 82.44, 306.68°)
OKLaboklab(42.04% 0.0524 -0.1904)
OKLCHoklch(42.04% 0.198 285.4)
XYZxyz(11.6630, 6.3254, 42.1928)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2AB1 #90B12A
analogous
#2A4CB1 #4B2AB1 #8F2AB1
triadic
#4B2AB1 #B14B2A #2AB14B
tetradic
#4B2AB1 #B12A4C #90B12A #2AB18F
square
#4B2AB1 #B12A4C #90B12A #2AB18F
split-complementary
#4B2AB1 #B18F2A #4CB12A
monochromatic
#21134E #361E80 #4B2AB1 #6845D3 #9077DF

Accessibility & contrast

On white

9.27
#4B2AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4B2AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2AB1
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2AB1#FFFFFF#000000##FFFFFF
##4B2AB11.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#0043AF
Tritanopia (blue-blind)
#16506C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4b2ab1;
/* rgb */ color: rgb(75, 42, 177);
/* oklch */ color: oklch(42.0% 0.198 285.4);
Tailwind
colors: {
  custom: {
    50: '#8968c9',
    500: '#4b2ab1',
    950: '#000000',
  },
}
SCSS
$custom: #4b2ab1;
$custom-light: #8968c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2ab1",
  "rgb": {
    "r": 75,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 254.667,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42043,
    "c": 0.19751,
    "h": 285.4
  },
  "luminance": 0.06326
}

Semantic roles & 50–950 ramp

primary
#4B2AB1
secondary
#B1C670
accent
#E543BD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4B2AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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