#4A126A#4A126A

#4A126A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.143 H 309.3°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#4A126A
RGBrgb(74, 18, 106)
HSLhsl(278, 71%, 24%)
HSVhsv(278, 83%, 42%)
CMYKcmyk(30.2%, 83%, 0%, 58.4%)
CIE-LABlab(19.76, 40.91, -39.06)
CIE-LCHlch(19.76, 56.56, 316.33°)
OKLaboklab(32.68% 0.0907 -0.1109)
OKLCHoklch(32.68% 0.143 309.3)
XYZxyz(5.6413, 2.9292, 13.9011)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A126A #326A12
analogous
#1E126A #4A126A #6A125E
triadic
#4A126A #6A4A12 #126A4A
tetradic
#4A126A #6A1E12 #326A12 #125E6A
square
#4A126A #6A1E12 #326A12 #125E6A
split-complementary
#4A126A #5E6A12 #126A1E
monochromatic
#12041A #250936 #4A126A #6F1B9E #9324D3

Accessibility & contrast

On white

13.24
#4A126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A126A
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A126A#FFFFFF#000000##FFFFFF
##4A126A1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6C
Deuteranopia (green-blind)
#003068
Tritanopia (blue-blind)
#45283E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4a126a;
/* rgb */ color: rgb(74, 18, 106);
/* oklch */ color: oklch(32.7% 0.143 309.3);
Tailwind
colors: {
  custom: {
    50: '#815895',
    500: '#4a126a',
    950: '#000000',
  },
}
SCSS
$custom: #4a126a;
$custom-light: #815895;
$custom-dark: #000000;
JSON
{
  "hex": "#4a126a",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 278.182,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.32679,
    "c": 0.14325,
    "h": 309.3
  },
  "luminance": 0.02929
}

Semantic roles & 50–950 ramp

primary
#4A126A
secondary
#5DA236
accent
#EE3A7B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4A126A

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

Preview Lab → · Contrast checker → · Palette generator →

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