#4C1F83#4C1F83

#4C1F83 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.156 H 298.8°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#4C1F83
RGBrgb(76, 31, 131)
HSLhsl(267, 62%, 32%)
HSVhsv(267, 76%, 51%)
CMYKcmyk(42%, 76.3%, 0%, 48.6%)
CIE-LABlab(24.18, 41.91, -47.86)
CIE-LCHlch(24.18, 63.61, 311.21°)
OKLaboklab(36.52% 0.0752 -0.1368)
OKLCHoklch(36.52% 0.156 298.8)
XYZxyz(7.5662, 4.1551, 21.8717)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1F83 #56831F
analogous
#1F2483 #4C1F83 #7E1F83
triadic
#4C1F83 #834C1F #1F834C
tetradic
#4C1F83 #831F24 #56831F #1F837E
square
#4C1F83 #831F24 #56831F #1F837E
split-complementary
#4C1F83 #837E1F #24831F
monochromatic
#130820 #2F1352 #4C1F83 #692BB4 #8749D4

Accessibility & contrast

On white

11.47
#4C1F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4C1F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1F83
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1F83#FFFFFF#000000##FFFFFF
##4C1F831.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003986
Deuteranopia (green-blind)
#003881
Tritanopia (blue-blind)
#3F394F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c1f83;
/* rgb */ color: rgb(76, 31, 131);
/* oklch */ color: oklch(36.5% 0.156 298.8);
Tailwind
colors: {
  custom: {
    50: '#845fa8',
    500: '#4c1f83',
    950: '#000000',
  },
}
SCSS
$custom: #4c1f83;
$custom-light: #845fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1f83",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 267,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36518,
    "c": 0.15611,
    "h": 298.8
  },
  "luminance": 0.04155
}

Semantic roles & 50–950 ramp

primary
#4C1F83
secondary
#84B648
accent
#E5439C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C1F83

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

Preview Lab → · Contrast checker → · Palette generator →

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