#4C1775#4C1775

#4C1775 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.150 H 305.2°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#4C1775
RGBrgb(76, 23, 117)
HSLhsl(274, 67%, 27%)
HSVhsv(274, 80%, 46%)
CMYKcmyk(35%, 80.3%, 0%, 54.1%)
CIE-LABlab(21.70, 41.92, -43.00)
CIE-LCHlch(21.70, 60.05, 314.28°)
OKLaboklab(34.4% 0.0863 -0.1224)
OKLCHoklch(34.4% 0.15 305.2)
XYZxyz(6.4970, 3.4337, 17.1467)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1775 #407517
analogous
#1D1775 #4C1775 #75176F
triadic
#4C1775 #754C17 #17754C
tetradic
#4C1775 #751D17 #407517 #176F75
square
#4C1775 #751D17 #407517 #176F75
split-complementary
#4C1775 #6F7517 #17751D
monochromatic
#11051A #2B0D42 #4C1775 #6D21A8 #8E30D6

Accessibility & contrast

On white

12.45
#4C1775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1775
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1775#FFFFFF#000000##FFFFFF
##4C17751.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1775;
/* rgb */ color: rgb(76, 23, 117);
/* oklch */ color: oklch(34.4% 0.150 305.2);
Tailwind
colors: {
  custom: {
    50: '#835b9d',
    500: '#4c1775',
    950: '#000000',
  },
}
SCSS
$custom: #4c1775;
$custom-light: #835b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1775",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 117
  },
  "hsl": {
    "h": 273.83,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34401,
    "c": 0.14982,
    "h": 305.2
  },
  "luminance": 0.03434
}

Semantic roles & 50–950 ramp

primary
#4C1775
secondary
#6DAA3D
accent
#EA3E89
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1775

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

Preview Lab → · Contrast checker → · Palette generator →

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