#4B1F8A#4B1F8A

#4B1F8A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.164 H 296.0°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#4B1F8A
RGBrgb(75, 31, 138)
HSLhsl(265, 63%, 33%)
HSVhsv(265, 78%, 54%)
CMYKcmyk(45.7%, 77.5%, 0%, 45.9%)
CIE-LABlab(24.67, 43.61, -51.44)
CIE-LCHlch(24.67, 67.44, 310.29°)
OKLaboklab(37.03% 0.0719 -0.1473)
OKLCHoklch(37.03% 0.164 296)
XYZxyz(7.9779, 4.3106, 24.4515)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1F8A #5E8A1F
analogous
#1F288A #4B1F8A #801F8A
triadic
#4B1F8A #8A4B1F #1F8A4B
tetradic
#4B1F8A #8A1F28 #5E8A1F #1F8A80
square
#4B1F8A #8A1F28 #5E8A1F #1F8A80
split-complementary
#4B1F8A #8A801F #288A1F
monochromatic
#150926 #301458 #4B1F8A #662ABC #854CD7

Accessibility & contrast

On white

11.28
#4B1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B1F8A
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1F8A#FFFFFF#000000##FFFFFF
##4B1F8A1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#3A3C53
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4b1f8a;
/* rgb */ color: rgb(75, 31, 138);
/* oklch */ color: oklch(37.0% 0.164 296.0);
Tailwind
colors: {
  custom: {
    50: '#8460ad',
    500: '#4b1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #4b1f8a;
$custom-light: #8460ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1f8a",
  "rgb": {
    "r": 75,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 264.673,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37031,
    "c": 0.16393,
    "h": 296
  },
  "luminance": 0.04311
}

Semantic roles & 50–950 ramp

primary
#4B1F8A
secondary
#8CBA4B
accent
#E641A3
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4B1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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