#4C126D#4C126D

#4C126D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.147 H 309.2°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#4C126D
RGBrgb(76, 18, 109)
HSLhsl(278, 72%, 25%)
HSVhsv(278, 83%, 43%)
CMYKcmyk(30.3%, 83.5%, 0%, 57.3%)
CIE-LABlab(20.34, 41.99, -40.06)
CIE-LCHlch(20.34, 58.03, 316.35°)
OKLaboklab(33.23% 0.0929 -0.1138)
OKLCHoklch(33.23% 0.147 309.2)
XYZxyz(5.9566, 3.0734, 14.7445)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C126D #336D12
analogous
#1F126D #4C126D #6D1260
triadic
#4C126D #6D4C12 #126D4C
tetradic
#4C126D #6D1F12 #336D12 #12606D
square
#4C126D #6D1F12 #336D12 #12606D
split-complementary
#4C126D #606D12 #126D1F
monochromatic
#12041A #270938 #4C126D #711BA2 #9523D6

Accessibility & contrast

On white

13.01
#4C126D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C126D
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C126D#FFFFFF#000000##FFFFFF
##4C126D1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6F
Deuteranopia (green-blind)
#00326B
Tritanopia (blue-blind)
#472940
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4c126d;
/* rgb */ color: rgb(76, 18, 109);
/* oklch */ color: oklch(33.2% 0.147 309.2);
Tailwind
colors: {
  custom: {
    50: '#825898',
    500: '#4c126d',
    950: '#000000',
  },
}
SCSS
$custom: #4c126d;
$custom-light: #825898;
$custom-dark: #000000;
JSON
{
  "hex": "#4c126d",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 109
  },
  "hsl": {
    "h": 278.242,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.33229,
    "c": 0.14687,
    "h": 309.2
  },
  "luminance": 0.03073
}

Semantic roles & 50–950 ramp

primary
#4C126D
secondary
#5EA437
accent
#EE397B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C126D

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

Preview Lab → · Contrast checker → · Palette generator →

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