#4C1F7E#4C1F7E

#4C1F7E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.150 H 300.5°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#4C1F7E
RGBrgb(76, 31, 126)
HSLhsl(268, 61%, 31%)
HSVhsv(268, 75%, 49%)
CMYKcmyk(39.7%, 75.4%, 0%, 50.6%)
CIE-LABlab(23.75, 40.58, -45.41)
CIE-LCHlch(23.75, 60.90, 311.79°)
OKLaboklab(36.08% 0.0764 -0.1296)
OKLCHoklch(36.08% 0.15 300.5)
XYZxyz(7.2354, 4.0228, 20.1299)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1F7E #517E1F
analogous
#1F217E #4C1F7E #7B1F7E
triadic
#4C1F7E #7E4C1F #1F7E4C
tetradic
#4C1F7E #7E1F21 #517E1F #1F7E7B
square
#4C1F7E #7E1F21 #517E1F #1F7E7B
split-complementary
#4C1F7E #7E7B1F #217E1F
monochromatic
#11071C #2E134D #4C1F7E #6A2BAF #8846D1

Accessibility & contrast

On white

11.64
#4C1F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1F7E
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1F7E#FFFFFF#000000##FFFFFF
##4C1F7E1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#41374C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c1f7e;
/* rgb */ color: rgb(76, 31, 126);
/* oklch */ color: oklch(36.1% 0.150 300.5);
Tailwind
colors: {
  custom: {
    50: '#835fa4',
    500: '#4c1f7e',
    950: '#000000',
  },
}
SCSS
$custom: #4c1f7e;
$custom-light: #835fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1f7e",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 268.421,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3608,
    "c": 0.15042,
    "h": 300.5
  },
  "luminance": 0.04023
}

Semantic roles & 50–950 ramp

primary
#4C1F7E
secondary
#7FB148
accent
#E44498
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C1F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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