#4B186C#4B186C

#4B186C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.139 H 308.2°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#4B186C
RGBrgb(75, 24, 108)
HSLhsl(276, 64%, 26%)
HSVhsv(276, 78%, 42%)
CMYKcmyk(30.6%, 77.8%, 0%, 57.6%)
CIE-LABlab(20.95, 39.09, -38.42)
CIE-LCHlch(20.95, 54.81, 315.50°)
OKLaboklab(33.6% 0.0859 -0.109)
OKLCHoklch(33.6% 0.139 308.2)
XYZxyz(5.9345, 3.2319, 14.4956)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B186C #396C18
analogous
#21186C #4B186C #6C1863
triadic
#4B186C #6C4B18 #186C4B
tetradic
#4B186C #6C2118 #396C18 #18636C
square
#4B186C #6C2118 #396C18 #18636C
split-complementary
#4B186C #636C18 #186C21
monochromatic
#110619 #280D3A #4B186C #6E239E #912ED0

Accessibility & contrast

On white

12.76
#4B186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4B186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B186C
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B186C#FFFFFF#000000##FFFFFF
##4B186C1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#00336A
Tritanopia (blue-blind)
#462C41
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4b186c;
/* rgb */ color: rgb(75, 24, 108);
/* oklch */ color: oklch(33.6% 0.139 308.2);
Tailwind
colors: {
  custom: {
    50: '#815b97',
    500: '#4b186c',
    950: '#000000',
  },
}
SCSS
$custom: #4b186c;
$custom-light: #815b97;
$custom-dark: #000000;
JSON
{
  "hex": "#4b186c",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 276.429,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33602,
    "c": 0.13881,
    "h": 308.2
  },
  "luminance": 0.03232
}

Semantic roles & 50–950 ramp

primary
#4B186C
secondary
#65A23E
accent
#E74182
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4B186C

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

Preview Lab → · Contrast checker → · Palette generator →

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