#4B1F76#4B1F76

#4B1F76 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.141 H 302.8°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#4B1F76
RGBrgb(75, 31, 118)
HSLhsl(270, 58%, 29%)
HSVhsv(270, 74%, 46%)
CMYKcmyk(36.4%, 73.7%, 0%, 53.7%)
CIE-LABlab(22.94, 38.28, -41.63)
CIE-LCHlch(22.94, 56.56, 312.60°)
OKLaboklab(35.27% 0.0765 -0.1185)
OKLCHoklch(35.27% 0.141 302.8)
XYZxyz(6.6609, 3.7838, 17.5155)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1F76 #4A761F
analogous
#201F76 #4B1F76 #761F76
triadic
#4B1F76 #764B1F #1F764B
tetradic
#4B1F76 #76201F #4A761F #1F7676
square
#4B1F76 #76201F #4A761F #1F7676
split-complementary
#4B1F76 #76761F #1F7620
monochromatic
#0F0618 #2C1246 #4B1F76 #6A2CA6 #8942CD

Accessibility & contrast

On white

11.95
#4B1F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4B1F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1F76
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1F76#FFFFFF#000000##FFFFFF
##4B1F761.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003679
Deuteranopia (green-blind)
#003674
Tritanopia (blue-blind)
#423448
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4b1f76;
/* rgb */ color: rgb(75, 31, 118);
/* oklch */ color: oklch(35.3% 0.141 302.8);
Tailwind
colors: {
  custom: {
    50: '#825f9e',
    500: '#4b1f76',
    950: '#000000',
  },
}
SCSS
$custom: #4b1f76;
$custom-light: #825f9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1f76",
  "rgb": {
    "r": 75,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 270.345,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35272,
    "c": 0.14105,
    "h": 302.8
  },
  "luminance": 0.03784
}

Semantic roles & 50–950 ramp

primary
#4B1F76
secondary
#78AA47
accent
#E24693
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4B1F76

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

Preview Lab → · Contrast checker → · Palette generator →

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