#4B1F9C#4B1F9C

#4B1F9C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.184 H 291.2°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#4B1F9C
RGBrgb(75, 31, 156)
HSLhsl(261, 67%, 37%)
HSVhsv(261, 80%, 61%)
CMYKcmyk(51.9%, 80.1%, 0%, 38.8%)
CIE-LABlab(26.38, 48.49, -59.76)
CIE-LCHlch(26.38, 76.95, 309.05°)
OKLaboklab(38.74% 0.0665 -0.1717)
OKLCHoklch(38.74% 0.184 291.2)
XYZxyz(9.3907, 4.8757, 31.8924)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1F9C #709C1F
analogous
#1F329C #4B1F9C #8A1F9C
triadic
#4B1F9C #9C4B1F #1F9C4B
tetradic
#4B1F9C #9C1F32 #709C1F #1F9C8A
square
#4B1F9C #9C1F32 #709C1F #1F9C8A
split-complementary
#4B1F9C #9C8A1F #329C1F
monochromatic
#1A0B36 #321569 #4B1F9C #6429CF #8758DE

Accessibility & contrast

On white

10.63
#4B1F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4B1F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1F9C
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1F9C#FFFFFF#000000##FFFFFF
##4B1F9C1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409F
Deuteranopia (green-blind)
#003C9A
Tritanopia (blue-blind)
#2E435E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4b1f9c;
/* rgb */ color: rgb(75, 31, 156);
/* oklch */ color: oklch(38.7% 0.184 291.2);
Tailwind
colors: {
  custom: {
    50: '#8661ba',
    500: '#4b1f9c',
    950: '#000000',
  },
}
SCSS
$custom: #4b1f9c;
$custom-light: #8661ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1f9c",
  "rgb": {
    "r": 75,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 261.12,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38741,
    "c": 0.18414,
    "h": 291.2
  },
  "luminance": 0.04876
}

Semantic roles & 50–950 ramp

primary
#4B1F9C
secondary
#9BC155
accent
#EA3EAD
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4B1F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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