#4B1F7A#4B1F7A

#4B1F7A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.146 H 301.3°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#4B1F7A
RGBrgb(75, 31, 122)
HSLhsl(269, 59%, 30%)
HSVhsv(269, 75%, 48%)
CMYKcmyk(38.5%, 74.6%, 0%, 52.2%)
CIE-LABlab(23.27, 39.33, -43.64)
CIE-LCHlch(23.27, 58.75, 312.03°)
OKLaboklab(35.61% 0.0757 -0.1244)
OKLCHoklch(35.61% 0.146 301.3)
XYZxyz(6.9036, 3.8809, 18.7940)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1F7A #4E7A1F
analogous
#1F217A #4B1F7A #781F7A
triadic
#4B1F7A #7A4B1F #1F7A4B
tetradic
#4B1F7A #7A1F21 #4E7A1F #1F7A78
square
#4B1F7A #7A1F21 #4E7A1F #1F7A78
split-complementary
#4B1F7A #7A781F #217A1F
monochromatic
#0F0618 #2D1349 #4B1F7A #692BAB #8744CF

Accessibility & contrast

On white

11.82
#4B1F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4B1F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1F7A
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1F7A#FFFFFF#000000##FFFFFF
##4B1F7A1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#41354A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4b1f7a;
/* rgb */ color: rgb(75, 31, 122);
/* oklch */ color: oklch(35.6% 0.146 301.3);
Tailwind
colors: {
  custom: {
    50: '#825fa1',
    500: '#4b1f7a',
    950: '#000000',
  },
}
SCSS
$custom: #4b1f7a;
$custom-light: #825fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1f7a",
  "rgb": {
    "r": 75,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 269.011,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.3561,
    "c": 0.14566,
    "h": 301.3
  },
  "luminance": 0.03881
}

Semantic roles & 50–950 ramp

primary
#4B1F7A
secondary
#7CAD47
accent
#E34596
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4B1F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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