#4C187F#4C187F

#4C187F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.159 H 301.2°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#4C187F
RGBrgb(76, 24, 127)
HSLhsl(270, 68%, 30%)
HSVhsv(270, 81%, 50%)
CMYKcmyk(40.2%, 81.1%, 0%, 50.2%)
CIE-LABlab(22.73, 44.00, -47.70)
CIE-LCHlch(22.73, 64.89, 312.69°)
OKLaboklab(35.39% 0.0827 -0.1363)
OKLCHoklch(35.39% 0.159 301.2)
XYZxyz(7.1369, 3.7220, 20.4170)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C187F #4B7F18
analogous
#18187F #4C187F #7F187F
triadic
#4C187F #7F4C18 #187F4C
tetradic
#4C187F #7F1818 #4B7F18 #187F7F
square
#4C187F #7F1818 #4B7F18 #187F7F
split-complementary
#4C187F #7F7F18 #187F18
monochromatic
#0F051A #2D0E4C #4C187F #6B22B2 #8938D9

Accessibility & contrast

On white

12.04
#4C187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4C187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C187F
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C187F#FFFFFF#000000##FFFFFF
##4C187F1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#41344B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4c187f;
/* rgb */ color: rgb(76, 24, 127);
/* oklch */ color: oklch(35.4% 0.159 301.2);
Tailwind
colors: {
  custom: {
    50: '#845ca5',
    500: '#4c187f',
    950: '#000000',
  },
}
SCSS
$custom: #4c187f;
$custom-light: #845ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c187f",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 270.291,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35393,
    "c": 0.15938,
    "h": 301.2
  },
  "luminance": 0.03722
}

Semantic roles & 50–950 ramp

primary
#4C187F
secondary
#79B33F
accent
#EB3D93
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C187F

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

Preview Lab → · Contrast checker → · Palette generator →

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