#4C1985#4C1985

#4C1985 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.165 H 299.1°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#4C1985
RGBrgb(76, 25, 133)
HSLhsl(268, 68%, 31%)
HSVhsv(268, 81%, 52%)
CMYKcmyk(42.9%, 81.2%, 0%, 47.8%)
CIE-LABlab(23.42, 45.11, -50.35)
CIE-LCHlch(23.42, 67.60, 311.86°)
OKLaboklab(36.04% 0.08 -0.1441)
OKLCHoklch(36.04% 0.165 299.1)
XYZxyz(7.5607, 3.9251, 22.5450)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1985 #528519
analogous
#191C85 #4C1985 #821985
triadic
#4C1985 #854C19 #19854C
tetradic
#4C1985 #85191C #528519 #198582
square
#4C1985 #85191C #528519 #198582
split-complementary
#4C1985 #858219 #1C8519
monochromatic
#11061E #2F0F51 #4C1985 #6923B9 #883EDB

Accessibility & contrast

On white

11.76
#4C1985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4C1985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1985
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1985#FFFFFF#000000##FFFFFF
##4C19851.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#003783
Tritanopia (blue-blind)
#3E374F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c1985;
/* rgb */ color: rgb(76, 25, 133);
/* oklch */ color: oklch(36.0% 0.165 299.1);
Tailwind
colors: {
  custom: {
    50: '#845da9',
    500: '#4c1985',
    950: '#000000',
  },
}
SCSS
$custom: #4c1985;
$custom-light: #845da9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1985",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 268.333,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36044,
    "c": 0.16479,
    "h": 299.1
  },
  "luminance": 0.03925
}

Semantic roles & 50–950 ramp

primary
#4C1985
secondary
#80B941
accent
#EB3D99
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4C1985

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

Preview Lab → · Contrast checker → · Palette generator →

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