#4C186E#4C186E

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

Color values

HEX#4C186E
RGBrgb(76, 24, 110)
HSLhsl(276, 64%, 26%)
HSVhsv(276, 78%, 43%)
CMYKcmyk(30.9%, 78.2%, 0%, 56.9%)
CIE-LABlab(21.27, 39.79, -39.19)
CIE-LCHlch(21.27, 55.85, 315.43°)
OKLaboklab(33.91% 0.087 -0.1113)
OKLCHoklch(33.91% 0.141 308)
XYZxyz(6.1210, 3.3156, 15.0664)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C186E #3A6E18
analogous
#21186E #4C186E #6E1865
triadic
#4C186E #6E4C18 #186E4C
tetradic
#4C186E #6E2118 #3A6E18 #18656E
square
#4C186E #6E2118 #3A6E18 #18656E
split-complementary
#4C186E #656E18 #186E21
monochromatic
#110519 #290D3C #4C186E #6F23A0 #912FD2

Accessibility & contrast

On white

12.63
#4C186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C186E
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C186E#FFFFFF#000000##FFFFFF
##4C186E1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c186e;
/* rgb */ color: rgb(76, 24, 110);
/* oklch */ color: oklch(33.9% 0.141 308.0);
Tailwind
colors: {
  custom: {
    50: '#825b98',
    500: '#4c186e',
    950: '#000000',
  },
}
SCSS
$custom: #4c186e;
$custom-light: #825b98;
$custom-dark: #000000;
JSON
{
  "hex": "#4c186e",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 276.279,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.33909,
    "c": 0.14125,
    "h": 308
  },
  "luminance": 0.03316
}

Semantic roles & 50–950 ramp

primary
#4C186E
secondary
#66A43E
accent
#E74182
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C186E

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

Preview Lab → · Contrast checker → · Palette generator →

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