#4C1875#4C1875

#4C1875 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.149 H 305.0°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#4C1875
RGBrgb(76, 24, 117)
HSLhsl(274, 66%, 28%)
HSVhsv(274, 79%, 46%)
CMYKcmyk(35%, 79.5%, 0%, 54.1%)
CIE-LABlab(21.85, 41.50, -42.76)
CIE-LCHlch(21.85, 59.59, 314.15°)
OKLaboklab(34.5% 0.0854 -0.1217)
OKLCHoklch(34.5% 0.149 305)
XYZxyz(6.5173, 3.4742, 17.1534)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1875 #417518
analogous
#1D1875 #4C1875 #751870
triadic
#4C1875 #754C18 #18754C
tetradic
#4C1875 #751D18 #417518 #187075
square
#4C1875 #751D18 #417518 #187075
split-complementary
#4C1875 #707518 #18751D
monochromatic
#100519 #2B0E42 #4C1875 #6D22A8 #8D32D5

Accessibility & contrast

On white

12.39
#4C1875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4C1875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1875
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1875#FFFFFF#000000##FFFFFF
##4C18751.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003378
Deuteranopia (green-blind)
#003473
Tritanopia (blue-blind)
#443046
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4c1875;
/* rgb */ color: rgb(76, 24, 117);
/* oklch */ color: oklch(34.5% 0.149 305.0);
Tailwind
colors: {
  custom: {
    50: '#835b9d',
    500: '#4c1875',
    950: '#000000',
  },
}
SCSS
$custom: #4c1875;
$custom-light: #835b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1875",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 273.548,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34504,
    "c": 0.14872,
    "h": 305
  },
  "luminance": 0.03474
}

Semantic roles & 50–950 ramp

primary
#4C1875
secondary
#6EAA3F
accent
#E93F8A
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1875

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

Preview Lab → · Contrast checker → · Palette generator →

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