#4C1275#4C1275

#4C1275 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.155 H 305.8°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#4C1275
RGBrgb(76, 18, 117)
HSLhsl(275, 73%, 26%)
HSVhsv(275, 85%, 46%)
CMYKcmyk(35%, 84.6%, 0%, 54.1%)
CIE-LABlab(21.03, 43.87, -44.09)
CIE-LCHlch(21.03, 62.20, 314.86°)
OKLaboklab(33.93% 0.0906 -0.1256)
OKLCHoklch(33.93% 0.155 305.8)
XYZxyz(6.4070, 3.2535, 17.1166)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1275 #3B7512
analogous
#1B1275 #4C1275 #75126D
triadic
#4C1275 #754C12 #12754C
tetradic
#4C1275 #751B12 #3B7512 #126D75
square
#4C1275 #751B12 #3B7512 #126D75
split-complementary
#4C1275 #6D7512 #12751B
monochromatic
#11041B #2A0A40 #4C1275 #6E1AAA #9124DD

Accessibility & contrast

On white

12.72
#4C1275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4C1275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1275
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1275#FFFFFF#000000##FFFFFF
##4C12751.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003178
Deuteranopia (green-blind)
#003373
Tritanopia (blue-blind)
#442D44
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4c1275;
/* rgb */ color: rgb(76, 18, 117);
/* oklch */ color: oklch(33.9% 0.155 305.8);
Tailwind
colors: {
  custom: {
    50: '#83599e',
    500: '#4c1275',
    950: '#000000',
  },
}
SCSS
$custom: #4c1275;
$custom-light: #83599e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1275",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 275.152,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.33932,
    "c": 0.15489,
    "h": 305.8
  },
  "luminance": 0.03253
}

Semantic roles & 50–950 ramp

primary
#4C1275
secondary
#67AC37
accent
#F03884
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1275

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

Preview Lab → · Contrast checker → · Palette generator →

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