#4C1970#4C1970

#4C1970 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.142 H 307.0°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#4C1970
RGBrgb(76, 25, 112)
HSLhsl(275, 64%, 27%)
HSVhsv(275, 78%, 44%)
CMYKcmyk(32.1%, 77.7%, 0%, 56.1%)
CIE-LABlab(21.59, 39.83, -39.97)
CIE-LCHlch(21.59, 56.43, 314.90°)
OKLaboklab(34.19% 0.0856 -0.1136)
OKLCHoklch(34.19% 0.142 307)
XYZxyz(6.2521, 3.4017, 15.6533)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1970 #3D7019
analogous
#201970 #4C1970 #701969
triadic
#4C1970 #704C19 #19704C
tetradic
#4C1970 #702019 #3D7019 #196970
square
#4C1970 #702019 #3D7019 #196970
split-complementary
#4C1970 #697019 #197020
monochromatic
#110619 #2A0E3E #4C1970 #6E24A2 #8F32D1

Accessibility & contrast

On white

12.50
#4C1970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4C1970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1970
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1970#FFFFFF#000000##FFFFFF
##4C19701.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003272
Deuteranopia (green-blind)
#00346E
Tritanopia (blue-blind)
#462E43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4c1970;
/* rgb */ color: rgb(76, 25, 112);
/* oklch */ color: oklch(34.2% 0.142 307.0);
Tailwind
colors: {
  custom: {
    50: '#825b9a',
    500: '#4c1970',
    950: '#000000',
  },
}
SCSS
$custom: #4c1970;
$custom-light: #825b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1970",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 275.172,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34186,
    "c": 0.14218,
    "h": 307
  },
  "luminance": 0.03402
}

Semantic roles & 50–950 ramp

primary
#4C1970
secondary
#6AA540
accent
#E74186
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1970

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

Preview Lab → · Contrast checker → · Palette generator →

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