#4B1F7C#4B1F7C

#4B1F7C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.148 H 300.6°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#4B1F7C
RGBrgb(75, 31, 124)
HSLhsl(268, 60%, 30%)
HSVhsv(268, 75%, 49%)
CMYKcmyk(39.5%, 75%, 0%, 51.4%)
CIE-LABlab(23.44, 39.86, -44.64)
CIE-LCHlch(23.44, 59.85, 311.76°)
OKLaboklab(35.78% 0.0753 -0.1274)
OKLCHoklch(35.78% 0.148 300.6)
XYZxyz(7.0288, 3.9310, 19.4533)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1F7C #507C1F
analogous
#1F217C #4B1F7C #791F7C
triadic
#4B1F7C #7C4B1F #1F7C4B
tetradic
#4B1F7C #7C1F21 #507C1F #1F7C79
square
#4B1F7C #7C1F21 #507C1F #1F7C79
split-complementary
#4B1F7C #7C791F #217C1F
monochromatic
#10071A #2D134B #4B1F7C #692BAD #8745D0

Accessibility & contrast

On white

11.76
#4B1F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B1F7C
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1F7C#FFFFFF#000000##FFFFFF
##4B1F7C1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b1f7c;
/* rgb */ color: rgb(75, 31, 124);
/* oklch */ color: oklch(35.8% 0.148 300.6);
Tailwind
colors: {
  custom: {
    50: '#825fa3',
    500: '#4b1f7c',
    950: '#000000',
  },
}
SCSS
$custom: #4b1f7c;
$custom-light: #825fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1f7c",
  "rgb": {
    "r": 75,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 268.387,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.35782,
    "c": 0.14796,
    "h": 300.6
  },
  "luminance": 0.03931
}

Semantic roles & 50–950 ramp

primary
#4B1F7C
secondary
#7EAF48
accent
#E34598
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4B1F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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