#4B186E#4B186E

#4B186E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.141 H 307.3°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#4B186E
RGBrgb(75, 24, 110)
HSLhsl(276, 64%, 26%)
HSVhsv(276, 78%, 43%)
CMYKcmyk(31.8%, 78.2%, 0%, 56.9%)
CIE-LABlab(21.11, 39.58, -39.45)
CIE-LCHlch(21.11, 55.88, 315.10°)
OKLaboklab(33.77% 0.0855 -0.1121)
OKLCHoklch(33.77% 0.141 307.3)
XYZxyz(6.0422, 3.2750, 15.0627)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B186E #3B6E18
analogous
#20186E #4B186E #6E1866
triadic
#4B186E #6E4B18 #186E4B
tetradic
#4B186E #6E2018 #3B6E18 #18666E
square
#4B186E #6E2018 #3B6E18 #18666E
split-complementary
#4B186E #666E18 #186E20
monochromatic
#110519 #290D3C #4B186E #6D23A0 #8F2FD2

Accessibility & contrast

On white

12.69
#4B186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B186E
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B186E#FFFFFF#000000##FFFFFF
##4B186E1.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b186e;
/* rgb */ color: rgb(75, 24, 110);
/* oklch */ color: oklch(33.8% 0.141 307.3);
Tailwind
colors: {
  custom: {
    50: '#815b98',
    500: '#4b186e',
    950: '#000000',
  },
}
SCSS
$custom: #4b186e;
$custom-light: #815b98;
$custom-dark: #000000;
JSON
{
  "hex": "#4b186e",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 275.581,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.33769,
    "c": 0.14095,
    "h": 307.3
  },
  "luminance": 0.03275
}

Semantic roles & 50–950 ramp

primary
#4B186E
secondary
#67A43E
accent
#E74184
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B186E

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

Preview Lab → · Contrast checker → · Palette generator →

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