#4C0F72#4C0F72

#4C0F72 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.155 H 307.4°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#4C0F72
RGBrgb(76, 15, 114)
HSLhsl(277, 77%, 25%)
HSVhsv(277, 87%, 45%)
CMYKcmyk(33.3%, 86.8%, 0%, 55.3%)
CIE-LABlab(20.41, 44.19, -43.17)
CIE-LCHlch(20.41, 61.78, 315.67°)
OKLaboklab(33.42% 0.0938 -0.1229)
OKLCHoklch(33.42% 0.155 307.4)
XYZxyz(6.1879, 3.0931, 16.1874)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0F72 #35720F
analogous
#1B0F72 #4C0F72 #720F66
triadic
#4C0F72 #724C0F #0F724C
tetradic
#4C0F72 #721B0F #35720F #0F6672
square
#4C0F72 #721B0F #35720F #0F6672
split-complementary
#4C0F72 #66720F #0F721B
monochromatic
#12041B #28083C #4C0F72 #7016A8 #941DDE

Accessibility & contrast

On white

12.97
#4C0F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4C0F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C0F72
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0F72#FFFFFF#000000##FFFFFF
##4C0F721.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#452A42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4c0f72;
/* rgb */ color: rgb(76, 15, 114);
/* oklch */ color: oklch(33.4% 0.155 307.4);
Tailwind
colors: {
  custom: {
    50: '#83579b',
    500: '#4c0f72',
    950: '#000000',
  },
}
SCSS
$custom: #4c0f72;
$custom-light: #83579b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0f72",
  "rgb": {
    "r": 76,
    "g": 15,
    "b": 114
  },
  "hsl": {
    "h": 276.97,
    "s": 76.744,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33419,
    "c": 0.15461,
    "h": 307.4
  },
  "luminance": 0.03093
}

Semantic roles & 50–950 ramp

primary
#4C0F72
secondary
#61AA33
accent
#F3357E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C0F72

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

Preview Lab → · Contrast checker → · Palette generator →

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