#4C126F#4C126F

#4C126F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.149 H 308.3°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#4C126F
RGBrgb(76, 18, 111)
HSLhsl(277, 72%, 25%)
HSVhsv(277, 84%, 44%)
CMYKcmyk(31.5%, 83.8%, 0%, 56.5%)
CIE-LABlab(20.51, 42.45, -41.08)
CIE-LCHlch(20.51, 59.07, 315.94°)
OKLaboklab(33.4% 0.0924 -0.1168)
OKLCHoklch(33.4% 0.149 308.3)
XYZxyz(6.0654, 3.1169, 15.3179)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C126F #356F12
analogous
#1D126F #4C126F #6F1264
triadic
#4C126F #6F4C12 #126F4C
tetradic
#4C126F #6F1D12 #356F12 #12646F
square
#4C126F #6F1D12 #356F12 #12646F
split-complementary
#4C126F #646F12 #126F1D
monochromatic
#12041A #28093A #4C126F #701BA4 #9423D8

Accessibility & contrast

On white

12.94
#4C126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C126F
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C126F#FFFFFF#000000##FFFFFF
##4C126F1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#00326D
Tritanopia (blue-blind)
#462A41
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4c126f;
/* rgb */ color: rgb(76, 18, 111);
/* oklch */ color: oklch(33.4% 0.149 308.3);
Tailwind
colors: {
  custom: {
    50: '#825899',
    500: '#4c126f',
    950: '#000000',
  },
}
SCSS
$custom: #4c126f;
$custom-light: #825899;
$custom-dark: #000000;
JSON
{
  "hex": "#4c126f",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 277.419,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33402,
    "c": 0.14887,
    "h": 308.3
  },
  "luminance": 0.03117
}

Semantic roles & 50–950 ramp

primary
#4C126F
secondary
#61A637
accent
#EF397D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C126F

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

Preview Lab → · Contrast checker → · Palette generator →

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