#4B1785#4B1785

#4B1785 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.167 H 298.7°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#4B1785
RGBrgb(75, 23, 133)
HSLhsl(268, 71%, 31%)
HSVhsv(268, 83%, 52%)
CMYKcmyk(43.6%, 82.7%, 0%, 47.8%)
CIE-LABlab(23.01, 45.76, -51.04)
CIE-LCHlch(23.01, 68.55, 311.88°)
OKLaboklab(35.73% 0.08 -0.1461)
OKLCHoklch(35.73% 0.167 298.7)
XYZxyz(7.4406, 3.8020, 22.5276)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1785 #518517
analogous
#171A85 #4B1785 #821785
triadic
#4B1785 #854B17 #17854B
tetradic
#4B1785 #85171A #518517 #178582
square
#4B1785 #85171A #518517 #178582
split-complementary
#4B1785 #858217 #1A8517
monochromatic
#10051D #2E0E51 #4B1785 #6820B9 #873ADD

Accessibility & contrast

On white

11.93
#4B1785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B1785
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1785#FFFFFF#000000##FFFFFF
##4B17851.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#003683
Tritanopia (blue-blind)
#3C364F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4b1785;
/* rgb */ color: rgb(75, 23, 133);
/* oklch */ color: oklch(35.7% 0.167 298.7);
Tailwind
colors: {
  custom: {
    50: '#845ca9',
    500: '#4b1785',
    950: '#000000',
  },
}
SCSS
$custom: #4b1785;
$custom-light: #845ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1785",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 268.364,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35725,
    "c": 0.16658,
    "h": 298.7
  },
  "luminance": 0.03802
}

Semantic roles & 50–950 ramp

primary
#4B1785
secondary
#7FB93F
accent
#ED3B99
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #4B1785

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

Preview Lab → · Contrast checker → · Palette generator →

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