#4C0F71#4C0F71

#4C0F71 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.154 H 307.8°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#4C0F71
RGBrgb(76, 15, 113)
HSLhsl(277, 77%, 25%)
HSVhsv(277, 87%, 44%)
CMYKcmyk(32.7%, 86.7%, 0%, 55.7%)
CIE-LABlab(20.32, 43.96, -42.67)
CIE-LCHlch(20.32, 61.26, 315.85°)
OKLaboklab(33.33% 0.0941 -0.1214)
OKLCHoklch(33.33% 0.154 307.8)
XYZxyz(6.1313, 3.0705, 15.8892)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0F71 #34710F
analogous
#1B0F71 #4C0F71 #710F65
triadic
#4C0F71 #714C0F #0F714C
tetradic
#4C0F71 #711B0F #34710F #0F6571
square
#4C0F71 #711B0F #34710F #0F6571
split-complementary
#4C0F71 #65710F #0F711B
monochromatic
#12041B #28083B #4C0F71 #7016A7 #951DDD

Accessibility & contrast

On white

13.01
#4C0F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4C0F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C0F71
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0F71#FFFFFF#000000##FFFFFF
##4C0F711.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#00316F
Tritanopia (blue-blind)
#462A42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4c0f71;
/* rgb */ color: rgb(76, 15, 113);
/* oklch */ color: oklch(33.3% 0.154 307.8);
Tailwind
colors: {
  custom: {
    50: '#83579b',
    500: '#4c0f71',
    950: '#000000',
  },
}
SCSS
$custom: #4c0f71;
$custom-light: #83579b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0f71",
  "rgb": {
    "r": 76,
    "g": 15,
    "b": 113
  },
  "hsl": {
    "h": 277.347,
    "s": 76.563,
    "l": 25.098
  },
  "oklch": {
    "l": 0.33329,
    "c": 0.15363,
    "h": 307.8
  },
  "luminance": 0.0307
}

Semantic roles & 50–950 ramp

primary
#4C0F71
secondary
#5FA933
accent
#F3357D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C0F71

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

Preview Lab → · Contrast checker → · Palette generator →

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