#4C1675#4C1675

#4C1675 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.151 H 305.3°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#4C1675
RGBrgb(76, 22, 117)
HSLhsl(274, 68%, 27%)
HSVhsv(274, 81%, 46%)
CMYKcmyk(35%, 81.2%, 0%, 54.1%)
CIE-LABlab(21.56, 42.34, -43.23)
CIE-LCHlch(21.56, 60.51, 314.40°)
OKLaboklab(34.3% 0.0872 -0.1231)
OKLCHoklch(34.3% 0.151 305.3)
XYZxyz(6.4776, 3.3947, 17.1402)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1675 #3F7516
analogous
#1C1675 #4C1675 #75166F
triadic
#4C1675 #754C16 #16754C
tetradic
#4C1675 #751C16 #3F7516 #166F75
square
#4C1675 #751C16 #3F7516 #166F75
split-complementary
#4C1675 #6F7516 #16751C
monochromatic
#11051A #2B0C41 #4C1675 #6D20A9 #8E2ED8

Accessibility & contrast

On white

12.51
#4C1675 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1675
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1675#FFFFFF#000000##FFFFFF
##4C16751.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1675;
/* rgb */ color: rgb(76, 22, 117);
/* oklch */ color: oklch(34.3% 0.151 305.3);
Tailwind
colors: {
  custom: {
    50: '#835a9e',
    500: '#4c1675',
    950: '#000000',
  },
}
SCSS
$custom: #4c1675;
$custom-light: #835a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1675",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 117
  },
  "hsl": {
    "h": 274.105,
    "s": 68.345,
    "l": 27.255
  },
  "oklch": {
    "l": 0.343,
    "c": 0.1509,
    "h": 305.3
  },
  "luminance": 0.03395
}

Semantic roles & 50–950 ramp

primary
#4C1675
secondary
#6CAB3C
accent
#EB3D88
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1675

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

Preview Lab → · Contrast checker → · Palette generator →

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