#4C2187#4C2187

#4C2187 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.158 H 297.2°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#4C2187
RGBrgb(76, 33, 135)
HSLhsl(265, 61%, 33%)
HSVhsv(265, 76%, 53%)
CMYKcmyk(43.7%, 75.6%, 0%, 47.1%)
CIE-LABlab(24.87, 42.01, -49.24)
CIE-LCHlch(24.87, 64.73, 310.47°)
OKLaboklab(37.11% 0.0723 -0.1409)
OKLCHoklch(37.11% 0.158 297.2)
XYZxyz(7.8964, 4.3733, 23.3451)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2187 #5C8721
analogous
#212987 #4C2187 #7F2187
triadic
#4C2187 #874C21 #21874C
tetradic
#4C2187 #872129 #5C8721 #21877F
square
#4C2187 #872129 #5C8721 #21877F
split-complementary
#4C2187 #877F21 #298721
monochromatic
#150925 #301556 #4C2187 #682DB8 #874FD4

Accessibility & contrast

On white

11.20
#4C2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4C2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2187
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2187#FFFFFF#000000##FFFFFF
##4C21871.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#3D3B52
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c2187;
/* rgb */ color: rgb(76, 33, 135);
/* oklch */ color: oklch(37.1% 0.158 297.2);
Tailwind
colors: {
  custom: {
    50: '#8461ab',
    500: '#4c2187',
    950: '#000000',
  },
}
SCSS
$custom: #4c2187;
$custom-light: #8461ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2187",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 265.294,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37114,
    "c": 0.15835,
    "h": 297.2
  },
  "luminance": 0.04373
}

Semantic roles & 50–950 ramp

primary
#4C2187
secondary
#8AB74D
accent
#E444A0
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C2187

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

Preview Lab → · Contrast checker → · Palette generator →

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