#4C0F76#4C0F76

#4C0F76 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.159 H 305.7°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#4C0F76
RGBrgb(76, 15, 118)
HSLhsl(276, 77%, 26%)
HSVhsv(276, 87%, 46%)
CMYKcmyk(35.6%, 87.3%, 0%, 53.7%)
CIE-LABlab(20.77, 45.12, -45.15)
CIE-LCHlch(20.77, 63.83, 314.98°)
OKLaboklab(33.78% 0.0925 -0.1287)
OKLCHoklch(33.78% 0.159 305.7)
XYZxyz(6.4206, 3.1862, 17.4128)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0F76 #39760F
analogous
#180F76 #4C0F76 #760F6C
triadic
#4C0F76 #764C0F #0F764C
tetradic
#4C0F76 #76180F #39760F #0F6C76
square
#4C0F76 #76180F #39760F #0F6C76
split-complementary
#4C0F76 #6C760F #0F7618
monochromatic
#11031B #290840 #4C0F76 #6F16AC #921DE2

Accessibility & contrast

On white

12.83
#4C0F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4C0F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C0F76
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0F76#FFFFFF#000000##FFFFFF
##4C0F761.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#003274
Tritanopia (blue-blind)
#442C45
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c0f76;
/* rgb */ color: rgb(76, 15, 118);
/* oklch */ color: oklch(33.8% 0.159 305.7);
Tailwind
colors: {
  custom: {
    50: '#83579e',
    500: '#4c0f76',
    950: '#000000',
  },
}
SCSS
$custom: #4c0f76;
$custom-light: #83579e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0f76",
  "rgb": {
    "r": 76,
    "g": 15,
    "b": 118
  },
  "hsl": {
    "h": 275.534,
    "s": 77.444,
    "l": 26.078
  },
  "oklch": {
    "l": 0.33781,
    "c": 0.15852,
    "h": 305.7
  },
  "luminance": 0.03186
}

Semantic roles & 50–950 ramp

primary
#4C0F76
secondary
#65AD33
accent
#F43482
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C0F76

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

Preview Lab → · Contrast checker → · Palette generator →

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