#4B186A#4B186A

#4B186A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.137 H 309.2°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#4B186A
RGBrgb(75, 24, 106)
HSLhsl(277, 63%, 25%)
HSVhsv(277, 77%, 42%)
CMYKcmyk(29.2%, 77.4%, 0%, 58.4%)
CIE-LABlab(20.79, 38.61, -37.38)
CIE-LCHlch(20.79, 53.74, 315.93°)
OKLaboklab(33.44% 0.0863 -0.106)
OKLCHoklch(33.44% 0.137 309.2)
XYZxyz(5.8293, 3.1898, 13.9415)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B186A #376A18
analogous
#22186A #4B186A #6A1860
triadic
#4B186A #6A4B18 #186A4B
tetradic
#4B186A #6A2218 #376A18 #18606A
square
#4B186A #6A2218 #376A18 #18606A
split-complementary
#4B186A #606A18 #186A22
monochromatic
#120619 #280D38 #4B186A #6E239C #922FCE

Accessibility & contrast

On white

12.82
#4B186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4B186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B186A
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B186A#FFFFFF#000000##FFFFFF
##4B186A1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#033368
Tritanopia (blue-blind)
#462B3F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4b186a;
/* rgb */ color: rgb(75, 24, 106);
/* oklch */ color: oklch(33.4% 0.137 309.2);
Tailwind
colors: {
  custom: {
    50: '#815a95',
    500: '#4b186a',
    950: '#000000',
  },
}
SCSS
$custom: #4b186a;
$custom-light: #815a95;
$custom-dark: #000000;
JSON
{
  "hex": "#4b186a",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 277.317,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33438,
    "c": 0.13666,
    "h": 309.2
  },
  "luminance": 0.0319
}

Semantic roles & 50–950 ramp

primary
#4B186A
secondary
#63A03E
accent
#E64280
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4B186A

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

Preview Lab → · Contrast checker → · Palette generator →

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