#4B186B#4B186B

#4B186B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.138 H 308.7°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#4B186B
RGBrgb(75, 24, 107)
HSLhsl(277, 63%, 26%)
HSVhsv(277, 78%, 42%)
CMYKcmyk(29.9%, 77.6%, 0%, 58%)
CIE-LABlab(20.87, 38.85, -37.90)
CIE-LCHlch(20.87, 54.27, 315.71°)
OKLaboklab(33.52% 0.0861 -0.1075)
OKLCHoklch(33.52% 0.138 308.7)
XYZxyz(5.8816, 3.2108, 14.2170)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B186B #386B18
analogous
#21186B #4B186B #6B1861
triadic
#4B186B #6B4B18 #186B4B
tetradic
#4B186B #6B2118 #386B18 #18616B
square
#4B186B #6B2118 #386B18 #18616B
split-complementary
#4B186B #616B18 #186B21
monochromatic
#120619 #280D39 #4B186B #6E239D #912ECF

Accessibility & contrast

On white

12.79
#4B186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B186B
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B186B#FFFFFF#000000##FFFFFF
##4B186B1.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#013369
Tritanopia (blue-blind)
#462C40
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4b186b;
/* rgb */ color: rgb(75, 24, 107);
/* oklch */ color: oklch(33.5% 0.138 308.7);
Tailwind
colors: {
  custom: {
    50: '#815b96',
    500: '#4b186b',
    950: '#000000',
  },
}
SCSS
$custom: #4b186b;
$custom-light: #815b96;
$custom-dark: #000000;
JSON
{
  "hex": "#4b186b",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 276.867,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3352,
    "c": 0.13773,
    "h": 308.7
  },
  "luminance": 0.03211
}

Semantic roles & 50–950 ramp

primary
#4B186B
secondary
#64A13E
accent
#E64181
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4B186B

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

Preview Lab → · Contrast checker → · Palette generator →

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