#4B1F8F#4B1F8F

#4B1F8F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.170 H 294.6°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#4B1F8F
RGBrgb(75, 31, 143)
HSLhsl(264, 64%, 34%)
HSVhsv(264, 78%, 56%)
CMYKcmyk(47.6%, 78.3%, 0%, 43.9%)
CIE-LABlab(25.13, 44.96, -53.80)
CIE-LCHlch(25.13, 70.11, 309.88°)
OKLaboklab(37.49% 0.0705 -0.1542)
OKLCHoklch(37.49% 0.17 294.6)
XYZxyz(8.3482, 4.4588, 26.4020)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1F8F #638F1F
analogous
#1F2B8F #4B1F8F #831F8F
triadic
#4B1F8F #8F4B1F #1F8F4B
tetradic
#4B1F8F #8F1F2B #638F1F #1F8F83
square
#4B1F8F #8F1F2B #638F1F #1F8F83
split-complementary
#4B1F8F #8F831F #2B8F1F
monochromatic
#16092A #31145D #4B1F8F #652AC1 #854FD9

Accessibility & contrast

On white

11.10
#4B1F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4B1F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1F8F
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1F8F#FFFFFF#000000##FFFFFF
##4B1F8F1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#373E56
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4b1f8f;
/* rgb */ color: rgb(75, 31, 143);
/* oklch */ color: oklch(37.5% 0.170 294.6);
Tailwind
colors: {
  custom: {
    50: '#8560b1',
    500: '#4b1f8f',
    950: '#000000',
  },
}
SCSS
$custom: #4b1f8f;
$custom-light: #8560b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1f8f",
  "rgb": {
    "r": 75,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 263.571,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37495,
    "c": 0.16959,
    "h": 294.6
  },
  "luminance": 0.04459
}

Semantic roles & 50–950 ramp

primary
#4B1F8F
secondary
#91BC4E
accent
#E740A6
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4B1F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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