#4B1986#4B1986

#4B1986 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.166 H 298.1°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#4B1986
RGBrgb(75, 25, 134)
HSLhsl(268, 69%, 31%)
HSVhsv(268, 81%, 53%)
CMYKcmyk(44%, 81.3%, 0%, 47.5%)
CIE-LABlab(23.38, 45.21, -51.06)
CIE-LCHlch(23.38, 68.19, 311.52°)
OKLaboklab(36.01% 0.0781 -0.1462)
OKLCHoklch(36.01% 0.166 298.1)
XYZxyz(7.5512, 3.9122, 22.9069)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1986 #548619
analogous
#191D86 #4B1986 #811986
triadic
#4B1986 #864B19 #19864B
tetradic
#4B1986 #86191D #548619 #198681
square
#4B1986 #86191D #548619 #198681
split-complementary
#4B1986 #868119 #1D8619
monochromatic
#11061F #2E0F52 #4B1986 #6823BA #863EDB

Accessibility & contrast

On white

11.78
#4B1986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4B1986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1986
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1986#FFFFFF#000000##FFFFFF
##4B19861.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003784
Tritanopia (blue-blind)
#3C3750
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4b1986;
/* rgb */ color: rgb(75, 25, 134);
/* oklch */ color: oklch(36.0% 0.166 298.1);
Tailwind
colors: {
  custom: {
    50: '#845daa',
    500: '#4b1986',
    950: '#000000',
  },
}
SCSS
$custom: #4b1986;
$custom-light: #845daa;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1986",
  "rgb": {
    "r": 75,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 267.523,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36013,
    "c": 0.16573,
    "h": 298.1
  },
  "luminance": 0.03912
}

Semantic roles & 50–950 ramp

primary
#4B1986
secondary
#82BA41
accent
#EB3C9B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #4B1986

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

Preview Lab → · Contrast checker → · Palette generator →

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