#4B186D#4B186D

#4B186D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.140 H 307.8°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#4B186D
RGBrgb(75, 24, 109)
HSLhsl(276, 64%, 26%)
HSVhsv(276, 78%, 43%)
CMYKcmyk(31.2%, 78%, 0%, 57.3%)
CIE-LABlab(21.03, 39.34, -38.93)
CIE-LCHlch(21.03, 55.35, 315.29°)
OKLaboklab(33.69% 0.0857 -0.1105)
OKLCHoklch(33.69% 0.14 307.8)
XYZxyz(5.9880, 3.2533, 14.7775)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B186D #3A6D18
analogous
#20186D #4B186D #6D1864
triadic
#4B186D #6D4B18 #186D4B
tetradic
#4B186D #6D2018 #3A6D18 #18646D
square
#4B186D #6D2018 #3A6D18 #18646D
split-complementary
#4B186D #646D18 #186D20
monochromatic
#110619 #280D3B #4B186D #6E239F #902ED1

Accessibility & contrast

On white

12.72
#4B186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B186D
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B186D#FFFFFF#000000##FFFFFF
##4B186D1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#00336B
Tritanopia (blue-blind)
#452C41
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4b186d;
/* rgb */ color: rgb(75, 24, 109);
/* oklch */ color: oklch(33.7% 0.140 307.8);
Tailwind
colors: {
  custom: {
    50: '#815b97',
    500: '#4b186d',
    950: '#000000',
  },
}
SCSS
$custom: #4b186d;
$custom-light: #815b97;
$custom-dark: #000000;
JSON
{
  "hex": "#4b186d",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 276,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.33686,
    "c": 0.13988,
    "h": 307.8
  },
  "luminance": 0.03253
}

Semantic roles & 50–950 ramp

primary
#4B186D
secondary
#66A33E
accent
#E74183
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B186D

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

Preview Lab → · Contrast checker → · Palette generator →

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