#4C126C#4C126C

#4C126C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.146 H 309.7°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#4C126C
RGBrgb(76, 18, 108)
HSLhsl(279, 71%, 25%)
HSVhsv(279, 83%, 42%)
CMYKcmyk(29.6%, 83.3%, 0%, 57.6%)
CIE-LABlab(20.25, 41.76, -39.54)
CIE-LCHlch(20.25, 57.51, 316.56°)
OKLaboklab(33.14% 0.0931 -0.1123)
OKLCHoklch(33.14% 0.146 309.7)
XYZxyz(5.9030, 3.0519, 14.4626)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C126C #326C12
analogous
#1F126C #4C126C #6C125F
triadic
#4C126C #6C4C12 #126C4C
tetradic
#4C126C #6C1F12 #326C12 #125F6C
square
#4C126C #6C1F12 #326C12 #125F6C
split-complementary
#4C126C #5F6C12 #126C1F
monochromatic
#12041A #270938 #4C126C #711BA0 #9623D5

Accessibility & contrast

On white

13.04
#4C126C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C126C
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C126C#FFFFFF#000000##FFFFFF
##4C126C1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6E
Deuteranopia (green-blind)
#00326A
Tritanopia (blue-blind)
#47293F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4c126c;
/* rgb */ color: rgb(76, 18, 108);
/* oklch */ color: oklch(33.1% 0.146 309.7);
Tailwind
colors: {
  custom: {
    50: '#825897',
    500: '#4c126c',
    950: '#000000',
  },
}
SCSS
$custom: #4c126c;
$custom-light: #825897;
$custom-dark: #000000;
JSON
{
  "hex": "#4c126c",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 108
  },
  "hsl": {
    "h": 278.667,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.33144,
    "c": 0.14587,
    "h": 309.7
  },
  "luminance": 0.03052
}

Semantic roles & 50–950 ramp

primary
#4C126C
secondary
#5DA336
accent
#EE3A7A
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C126C

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

Preview Lab → · Contrast checker → · Palette generator →

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