#4C1F7B#4C1F7B

#4C1F7B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.147 H 301.6°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#4C1F7B
RGBrgb(76, 31, 123)
HSLhsl(269, 60%, 30%)
HSVhsv(269, 75%, 48%)
CMYKcmyk(38.2%, 74.8%, 0%, 51.8%)
CIE-LABlab(23.49, 39.80, -43.92)
CIE-LCHlch(23.49, 59.27, 312.18°)
OKLaboklab(35.82% 0.077 -0.1252)
OKLCHoklch(35.82% 0.147 301.6)
XYZxyz(7.0448, 3.9465, 19.1257)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1F7B #4E7B1F
analogous
#1F207B #4C1F7B #7A1F7B
triadic
#4C1F7B #7B4C1F #1F7B4C
tetradic
#4C1F7B #7B1F20 #4E7B1F #1F7B7A
square
#4C1F7B #7B1F20 #4E7B1F #1F7B7A
split-complementary
#4C1F7B #7B7A1F #207B1F
monochromatic
#100619 #2E134A #4C1F7B #6A2BAC #8944D0

Accessibility & contrast

On white

11.74
#4C1F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4C1F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1F7B
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1F7B#FFFFFF#000000##FFFFFF
##4C1F7B1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#42364B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c1f7b;
/* rgb */ color: rgb(76, 31, 123);
/* oklch */ color: oklch(35.8% 0.147 301.6);
Tailwind
colors: {
  custom: {
    50: '#835fa2',
    500: '#4c1f7b',
    950: '#000000',
  },
}
SCSS
$custom: #4c1f7b;
$custom-light: #835fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1f7b",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 269.348,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.35822,
    "c": 0.147,
    "h": 301.6
  },
  "luminance": 0.03947
}

Semantic roles & 50–950 ramp

primary
#4C1F7B
secondary
#7CAE48
accent
#E34596
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C1F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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