#4B1A7C#4B1A7C

#4B1A7C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.154 H 301.4°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#4B1A7C
RGBrgb(75, 26, 124)
HSLhsl(270, 65%, 29%)
HSVhsv(270, 79%, 49%)
CMYKcmyk(39.5%, 79%, 0%, 51.4%)
CIE-LABlab(22.62, 42.21, -45.98)
CIE-LCHlch(22.62, 62.42, 312.55°)
OKLaboklab(35.2% 0.0802 -0.1313)
OKLCHoklch(35.2% 0.154 301.4)
XYZxyz(6.9082, 3.6898, 19.4131)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1A7C #4B7C1A
analogous
#1A1A7C #4B1A7C #7C1A7C
triadic
#4B1A7C #7C4B1A #1A7C4B
tetradic
#4B1A7C #7C1A1A #4B7C1A #1A7C7C
square
#4B1A7C #7C1A1A #4B7C1A #1A7C7C
split-complementary
#4B1A7C #7C7C1A #1A7C1A
monochromatic
#0F0519 #2C0F49 #4B1A7C #6A25AF #883BD6

Accessibility & contrast

On white

12.08
#4B1A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4B1A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1A7C
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1A7C#FFFFFF#000000##FFFFFF
##4B1A7C1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#40344A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4b1a7c;
/* rgb */ color: rgb(75, 26, 124);
/* oklch */ color: oklch(35.2% 0.154 301.4);
Tailwind
colors: {
  custom: {
    50: '#835ca3',
    500: '#4b1a7c',
    950: '#000000',
  },
}
SCSS
$custom: #4b1a7c;
$custom-light: #835ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1a7c",
  "rgb": {
    "r": 75,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 270,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35201,
    "c": 0.15383,
    "h": 301.4
  },
  "luminance": 0.0369
}

Semantic roles & 50–950 ramp

primary
#4B1A7C
secondary
#79B042
accent
#E84094
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B1A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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