#4B1F79#4B1F79

#4B1F79 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.145 H 301.7°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#4B1F79
RGBrgb(75, 31, 121)
HSLhsl(269, 59%, 30%)
HSVhsv(269, 74%, 47%)
CMYKcmyk(38%, 74.4%, 0%, 52.5%)
CIE-LABlab(23.19, 39.07, -43.14)
CIE-LCHlch(23.19, 58.20, 312.16°)
OKLaboklab(35.53% 0.0759 -0.123)
OKLCHoklch(35.53% 0.145 301.7)
XYZxyz(6.8420, 3.8563, 18.4693)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1F79 #4D791F
analogous
#1F2079 #4B1F79 #781F79
triadic
#4B1F79 #794B1F #1F794B
tetradic
#4B1F79 #791F20 #4D791F #1F7978
square
#4B1F79 #791F20 #4D791F #1F7978
split-complementary
#4B1F79 #79781F #20791F
monochromatic
#0F0618 #2D1348 #4B1F79 #692BAA #8843CF

Accessibility & contrast

On white

11.86
#4B1F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4B1F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1F79
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1F79#FFFFFF#000000##FFFFFF
##4B1F791.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b1f79;
/* rgb */ color: rgb(75, 31, 121);
/* oklch */ color: oklch(35.5% 0.145 301.7);
Tailwind
colors: {
  custom: {
    50: '#825fa0',
    500: '#4b1f79',
    950: '#000000',
  },
}
SCSS
$custom: #4b1f79;
$custom-light: #825fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1f79",
  "rgb": {
    "r": 75,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 269.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35525,
    "c": 0.14451,
    "h": 301.7
  },
  "luminance": 0.03856
}

Semantic roles & 50–950 ramp

primary
#4B1F79
secondary
#7BAC47
accent
#E24596
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4B1F79

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

Preview Lab → · Contrast checker → · Palette generator →

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