#4C126E#4C126E

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

Color values

HEX#4C126E
RGBrgb(76, 18, 110)
HSLhsl(278, 72%, 25%)
HSVhsv(278, 84%, 43%)
CMYKcmyk(30.9%, 83.6%, 0%, 56.9%)
CIE-LABlab(20.42, 42.22, -40.57)
CIE-LCHlch(20.42, 58.55, 316.14°)
OKLaboklab(33.32% 0.0926 -0.1153)
OKLCHoklch(33.32% 0.148 308.8)
XYZxyz(6.0107, 3.0950, 15.0296)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C126E #346E12
analogous
#1E126E #4C126E #6E1262
triadic
#4C126E #6E4C12 #126E4C
tetradic
#4C126E #6E1E12 #346E12 #12626E
square
#4C126E #6E1E12 #346E12 #12626E
split-complementary
#4C126E #626E12 #126E1E
monochromatic
#12041A #280939 #4C126E #701BA3 #9523D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C126E#FFFFFF#000000##FFFFFF
##4C126E1.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)
#002F70
Deuteranopia (green-blind)
#00326C
Tritanopia (blue-blind)
#472A40
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4c126e;
/* rgb */ color: rgb(76, 18, 110);
/* oklch */ color: oklch(33.3% 0.148 308.8);
Tailwind
colors: {
  custom: {
    50: '#825898',
    500: '#4c126e',
    950: '#000000',
  },
}
SCSS
$custom: #4c126e;
$custom-light: #825898;
$custom-dark: #000000;
JSON
{
  "hex": "#4c126e",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 110
  },
  "hsl": {
    "h": 277.826,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.33315,
    "c": 0.14787,
    "h": 308.8
  },
  "luminance": 0.03095
}

Semantic roles & 50–950 ramp

primary
#4C126E
secondary
#5FA537
accent
#EF397C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C126E

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

Preview Lab → · Contrast checker → · Palette generator →

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