#4C126A#4C126A

#4C126A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.144 H 310.6°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#4C126A
RGBrgb(76, 18, 106)
HSLhsl(280, 71%, 24%)
HSVhsv(280, 83%, 42%)
CMYKcmyk(28.3%, 83%, 0%, 58.4%)
CIE-LABlab(20.08, 41.29, -38.51)
CIE-LCHlch(20.08, 56.46, 317.00°)
OKLaboklab(32.97% 0.0936 -0.1092)
OKLCHoklch(32.97% 0.144 310.6)
XYZxyz(5.7978, 3.0099, 13.9084)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C126A #306A12
analogous
#20126A #4C126A #6A125C
triadic
#4C126A #6A4C12 #126A4C
tetradic
#4C126A #6A2012 #306A12 #125C6A
square
#4C126A #6A2012 #306A12 #125C6A
split-complementary
#4C126A #5C6A12 #126A20
monochromatic
#13041A #260936 #4C126A #721B9E #9724D3

Accessibility & contrast

On white

13.11
#4C126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#4C126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C126A
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C126A#FFFFFF#000000##FFFFFF
##4C126A1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6C
Deuteranopia (green-blind)
#003168
Tritanopia (blue-blind)
#48283E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4c126a;
/* rgb */ color: rgb(76, 18, 106);
/* oklch */ color: oklch(33.0% 0.144 310.6);
Tailwind
colors: {
  custom: {
    50: '#825895',
    500: '#4c126a',
    950: '#000000',
  },
}
SCSS
$custom: #4c126a;
$custom-light: #825895;
$custom-dark: #000000;
JSON
{
  "hex": "#4c126a",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 279.545,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.32974,
    "c": 0.14387,
    "h": 310.6
  },
  "luminance": 0.0301
}

Semantic roles & 50–950 ramp

primary
#4C126A
secondary
#5BA236
accent
#EE3A77
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C126A

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

Preview Lab → · Contrast checker → · Palette generator →

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