#4C1F7F#4C1F7F

#4C1F7F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.152 H 300.2°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#4C1F7F
RGBrgb(76, 31, 127)
HSLhsl(268, 61%, 31%)
HSVhsv(268, 76%, 50%)
CMYKcmyk(40.2%, 75.6%, 0%, 50.2%)
CIE-LABlab(23.83, 40.85, -45.90)
CIE-LCHlch(23.83, 61.45, 311.67°)
OKLaboklab(36.17% 0.0762 -0.131)
OKLCHoklch(36.17% 0.152 300.2)
XYZxyz(7.3003, 4.0487, 20.4714)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1F7F #527F1F
analogous
#1F227F #4C1F7F #7C1F7F
triadic
#4C1F7F #7F4C1F #1F7F4C
tetradic
#4C1F7F #7F1F22 #527F1F #1F7F7C
square
#4C1F7F #7F1F22 #527F1F #1F7F7C
split-complementary
#4C1F7F #7F7C1F #227F1F
monochromatic
#11071D #2F134E #4C1F7F #692BB0 #8846D2

Accessibility & contrast

On white

11.60
#4C1F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4C1F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1F7F
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1F7F#FFFFFF#000000##FFFFFF
##4C1F7F1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#40374D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c1f7f;
/* rgb */ color: rgb(76, 31, 127);
/* oklch */ color: oklch(36.2% 0.152 300.2);
Tailwind
colors: {
  custom: {
    50: '#835fa5',
    500: '#4c1f7f',
    950: '#000000',
  },
}
SCSS
$custom: #4c1f7f;
$custom-light: #835fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1f7f",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 268.125,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36166,
    "c": 0.15157,
    "h": 300.2
  },
  "luminance": 0.04049
}

Semantic roles & 50–950 ramp

primary
#4C1F7F
secondary
#80B248
accent
#E44499
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C1F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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