#4B1F7D#4B1F7D

#4B1F7D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.149 H 300.2°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#4B1F7D
RGBrgb(75, 31, 125)
HSLhsl(268, 60%, 31%)
HSVhsv(268, 75%, 49%)
CMYKcmyk(40%, 75.2%, 0%, 51%)
CIE-LABlab(23.53, 40.13, -45.14)
CIE-LCHlch(23.53, 60.39, 311.64°)
OKLaboklab(35.87% 0.0751 -0.1288)
OKLCHoklch(35.87% 0.149 300.2)
XYZxyz(7.0924, 3.9564, 19.7881)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1F7D #517D1F
analogous
#1F227D #4B1F7D #7A1F7D
triadic
#4B1F7D #7D4B1F #1F7D4B
tetradic
#4B1F7D #7D1F22 #517D1F #1F7D7A
square
#4B1F7D #7D1F22 #517D1F #1F7D7A
split-complementary
#4B1F7D #7D7A1F #227D1F
monochromatic
#10071B #2E134C #4B1F7D #682BAE #8745D1

Accessibility & contrast

On white

11.72
#4B1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4B1F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1F7D
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1F7D#FFFFFF#000000##FFFFFF
##4B1F7D1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#40364C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4b1f7d;
/* rgb */ color: rgb(75, 31, 125);
/* oklch */ color: oklch(35.9% 0.149 300.2);
Tailwind
colors: {
  custom: {
    50: '#825fa3',
    500: '#4b1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #4b1f7d;
$custom-light: #825fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1f7d",
  "rgb": {
    "r": 75,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 268.085,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35868,
    "c": 0.14911,
    "h": 300.2
  },
  "luminance": 0.03956
}

Semantic roles & 50–950 ramp

primary
#4B1F7D
secondary
#7FB048
accent
#E34499
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4B1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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