#4B1895#4B1895

#4B1895 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.4% C 0.183 H 293.8°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#4B1895
RGBrgb(75, 24, 149)
HSLhsl(264, 72%, 34%)
HSVhsv(264, 84%, 58%)
CMYKcmyk(49.7%, 83.9%, 0%, 41.6%)
CIE-LABlab(24.70, 49.49, -58.22)
CIE-LCHlch(24.70, 76.41, 310.37°)
OKLaboklab(37.37% 0.0737 -0.1671)
OKLCHoklch(37.37% 0.183 293.8)
XYZxyz(8.6516, 4.3188, 28.8057)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1895 #629518
analogous
#182495 #4B1895 #8A1895
triadic
#4B1895 #954B18 #18954B
tetradic
#4B1895 #951824 #629518 #18958A
square
#4B1895 #951824 #629518 #18958A
split-complementary
#4B1895 #958A18 #249518
monochromatic
#16072C #301060 #4B1895 #6620CA #8546E1

Accessibility & contrast

On white

11.27
#4B1895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4B1895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1895
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1895#FFFFFF#000000##FFFFFF
##4B18951.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C98
Deuteranopia (green-blind)
#003893
Tritanopia (blue-blind)
#343D58
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4b1895;
/* rgb */ color: rgb(75, 24, 149);
/* oklch */ color: oklch(37.4% 0.183 293.8);
Tailwind
colors: {
  custom: {
    50: '#865db5',
    500: '#4b1895',
    950: '#000000',
  },
}
SCSS
$custom: #4b1895;
$custom-light: #865db5;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1895",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 264.48,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37369,
    "c": 0.18268,
    "h": 293.8
  },
  "luminance": 0.04319
}

Semantic roles & 50–950 ramp

primary
#4B1895
secondary
#90C246
accent
#EF39A5
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4B1895

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

Preview Lab → · Contrast checker → · Palette generator →

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