#4A126C#4A126C

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

Color values

HEX#4A126C
RGBrgb(74, 18, 108)
HSLhsl(277, 71%, 25%)
HSVhsv(277, 83%, 42%)
CMYKcmyk(31.5%, 83.3%, 0%, 57.6%)
CIE-LABlab(19.93, 41.38, -40.08)
CIE-LCHlch(19.93, 57.61, 315.91°)
OKLaboklab(32.85% 0.0901 -0.1139)
OKLCHoklch(32.85% 0.145 308.4)
XYZxyz(5.7466, 2.9713, 14.4552)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A126C #346C12
analogous
#1D126C #4A126C #6C1261
triadic
#4A126C #6C4A12 #126C4A
tetradic
#4A126C #6C1D12 #346C12 #12616C
square
#4A126C #6C1D12 #346C12 #12616C
split-complementary
#4A126C #616C12 #126C1D
monochromatic
#12041A #260938 #4A126C #6E1BA0 #9223D5

Accessibility & contrast

On white

13.17
#4A126C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#4A126C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A126C
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A126C#FFFFFF#000000##FFFFFF
##4A126C1.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6E
Deuteranopia (green-blind)
#00316A
Tritanopia (blue-blind)
#45293F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4a126c;
/* rgb */ color: rgb(74, 18, 108);
/* oklch */ color: oklch(32.9% 0.145 308.4);
Tailwind
colors: {
  custom: {
    50: '#815897',
    500: '#4a126c',
    950: '#000000',
  },
}
SCSS
$custom: #4a126c;
$custom-light: #815897;
$custom-dark: #000000;
JSON
{
  "hex": "#4a126c",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 108
  },
  "hsl": {
    "h": 277.333,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.32852,
    "c": 0.14527,
    "h": 308.4
  },
  "luminance": 0.02971
}

Semantic roles & 50–950 ramp

primary
#4A126C
secondary
#60A336
accent
#EE3A7E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4A126C

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

Preview Lab → · Contrast checker → · Palette generator →

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