#4B1F96#4B1F96

#4B1F96 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.177 H 292.7°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#4B1F96
RGBrgb(75, 31, 150)
HSLhsl(262, 66%, 35%)
HSVhsv(262, 79%, 59%)
CMYKcmyk(50%, 79.3%, 0%, 41.2%)
CIE-LABlab(25.80, 46.85, -57.03)
CIE-LCHlch(25.80, 73.81, 309.40°)
OKLaboklab(38.16% 0.0684 -0.1637)
OKLCHoklch(38.16% 0.177 292.7)
XYZxyz(8.8951, 4.6775, 29.2824)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1F96 #6A961F
analogous
#1F2E96 #4B1F96 #861F96
triadic
#4B1F96 #964B1F #1F964B
tetradic
#4B1F96 #961F2E #6A961F #1F9686
square
#4B1F96 #961F2E #6A961F #1F9686
split-complementary
#4B1F96 #96861F #2E961F
monochromatic
#180A31 #321563 #4B1F96 #6429C9 #8654DC

Accessibility & contrast

On white

10.85
#4B1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4B1F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1F96
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1F96#FFFFFF#000000##FFFFFF
##4B1F961.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#33415A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4b1f96;
/* rgb */ color: rgb(75, 31, 150);
/* oklch */ color: oklch(38.2% 0.177 292.7);
Tailwind
colors: {
  custom: {
    50: '#8660b6',
    500: '#4b1f96',
    950: '#000000',
  },
}
SCSS
$custom: #4b1f96;
$custom-light: #8660b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1f96",
  "rgb": {
    "r": 75,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 262.185,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38159,
    "c": 0.17745,
    "h": 292.7
  },
  "luminance": 0.04678
}

Semantic roles & 50–950 ramp

primary
#4B1F96
secondary
#97BF52
accent
#E93FAA
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4B1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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