#4B186F#4B186F

#4B186F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.142 H 306.9°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#4B186F
RGBrgb(75, 24, 111)
HSLhsl(275, 64%, 26%)
HSVhsv(275, 78%, 44%)
CMYKcmyk(32.4%, 78.4%, 0%, 56.5%)
CIE-LABlab(21.20, 39.83, -39.96)
CIE-LCHlch(21.20, 56.42, 314.90°)
OKLaboklab(33.85% 0.0853 -0.1136)
OKLCHoklch(33.85% 0.142 306.9)
XYZxyz(6.0969, 3.2969, 15.3510)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B186F #3C6F18
analogous
#20186F #4B186F #6F1868
triadic
#4B186F #6F4B18 #186F4B
tetradic
#4B186F #6F2018 #3C6F18 #18686F
square
#4B186F #6F2018 #3C6F18 #18686F
split-complementary
#4B186F #686F18 #186F20
monochromatic
#110519 #290D3D #4B186F #6D23A1 #8F2FD2

Accessibility & contrast

On white

12.66
#4B186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4B186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B186F
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B186F#FFFFFF#000000##FFFFFF
##4B186F1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#452D42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4b186f;
/* rgb */ color: rgb(75, 24, 111);
/* oklch */ color: oklch(33.9% 0.142 306.9);
Tailwind
colors: {
  custom: {
    50: '#815b99',
    500: '#4b186f',
    950: '#000000',
  },
}
SCSS
$custom: #4b186f;
$custom-light: #815b99;
$custom-dark: #000000;
JSON
{
  "hex": "#4b186f",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 275.172,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.33853,
    "c": 0.14202,
    "h": 306.9
  },
  "luminance": 0.03297
}

Semantic roles & 50–950 ramp

primary
#4B186F
secondary
#69A53E
accent
#E74085
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B186F

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

Preview Lab → · Contrast checker → · Palette generator →

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