#4C126B#4C126B

#4C126B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.145 H 310.1°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#4C126B
RGBrgb(76, 18, 107)
HSLhsl(279, 71%, 25%)
HSVhsv(279, 83%, 42%)
CMYKcmyk(29%, 83.2%, 0%, 58%)
CIE-LABlab(20.17, 41.52, -39.03)
CIE-LCHlch(20.17, 56.99, 316.77°)
OKLaboklab(33.06% 0.0934 -0.1107)
OKLCHoklch(33.06% 0.145 310.1)
XYZxyz(5.8501, 3.0308, 14.1839)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C126B #316B12
analogous
#20126B #4C126B #6B125E
triadic
#4C126B #6B4C12 #126B4C
tetradic
#4C126B #6B2012 #316B12 #125E6B
square
#4C126B #6B2012 #316B12 #125E6B
split-complementary
#4C126B #5E6B12 #126B20
monochromatic
#13041A #270937 #4C126B #711B9F #9624D4

Accessibility & contrast

On white

13.07
#4C126B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C126B
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C126B#FFFFFF#000000##FFFFFF
##4C126B1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6D
Deuteranopia (green-blind)
#003169
Tritanopia (blue-blind)
#48283F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4c126b;
/* rgb */ color: rgb(76, 18, 107);
/* oklch */ color: oklch(33.1% 0.145 310.1);
Tailwind
colors: {
  custom: {
    50: '#825896',
    500: '#4c126b',
    950: '#000000',
  },
}
SCSS
$custom: #4c126b;
$custom-light: #825896;
$custom-dark: #000000;
JSON
{
  "hex": "#4c126b",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 107
  },
  "hsl": {
    "h": 279.101,
    "s": 71.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.33058,
    "c": 0.14487,
    "h": 310.1
  },
  "luminance": 0.03031
}

Semantic roles & 50–950 ramp

primary
#4C126B
secondary
#5CA236
accent
#EE3A79
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C126B

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

Preview Lab → · Contrast checker → · Palette generator →

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