#4C1F7D#4C1F7D

#4C1F7D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.149 H 300.9°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#4C1F7D
RGBrgb(76, 31, 125)
HSLhsl(269, 60%, 31%)
HSVhsv(269, 75%, 49%)
CMYKcmyk(39.2%, 75.2%, 0%, 51%)
CIE-LABlab(23.66, 40.32, -44.91)
CIE-LCHlch(23.66, 60.36, 311.92°)
OKLaboklab(35.99% 0.0766 -0.1281)
OKLCHoklch(35.99% 0.149 300.9)
XYZxyz(7.1712, 3.9971, 19.7918)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1F7D #507D1F
analogous
#1F217D #4C1F7D #7B1F7D
triadic
#4C1F7D #7D4C1F #1F7D4C
tetradic
#4C1F7D #7D1F21 #507D1F #1F7D7B
square
#4C1F7D #7D1F21 #507D1F #1F7D7B
split-complementary
#4C1F7D #7D7B1F #217D1F
monochromatic
#10071B #2E134C #4C1F7D #6A2BAE #8845D1

Accessibility & contrast

On white

11.67
#4C1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4C1F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1F7D
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1F7D#FFFFFF#000000##FFFFFF
##4C1F7D1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#41364C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c1f7d;
/* rgb */ color: rgb(76, 31, 125);
/* oklch */ color: oklch(36.0% 0.149 300.9);
Tailwind
colors: {
  custom: {
    50: '#835fa3',
    500: '#4c1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #4c1f7d;
$custom-light: #835fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1f7d",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 268.723,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35993,
    "c": 0.14929,
    "h": 300.9
  },
  "luminance": 0.03997
}

Semantic roles & 50–950 ramp

primary
#4C1F7D
secondary
#7EB048
accent
#E34497
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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