#4A126F#4A126F

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

Color values

HEX#4A126F
RGBrgb(74, 18, 111)
HSLhsl(276, 72%, 25%)
HSVhsv(276, 84%, 44%)
CMYKcmyk(33.3%, 83.8%, 0%, 56.5%)
CIE-LABlab(20.19, 42.09, -41.61)
CIE-LCHlch(20.19, 59.18, 315.33°)
OKLaboklab(33.11% 0.0893 -0.1184)
OKLCHoklch(33.11% 0.148 307)
XYZxyz(5.9090, 3.0362, 15.3106)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A126F #376F12
analogous
#1B126F #4A126F #6F1265
triadic
#4A126F #6F4A12 #126F4A
tetradic
#4A126F #6F1B12 #376F12 #12656F
square
#4A126F #6F1B12 #376F12 #12656F
split-complementary
#4A126F #656F12 #126F1B
monochromatic
#12041A #27093A #4A126F #6D1BA4 #9023D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4A126F#FFFFFF#000000##FFFFFF
##4A126F1.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)
#002F71
Deuteranopia (green-blind)
#00316D
Tritanopia (blue-blind)
#442B41
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4a126f;
/* rgb */ color: rgb(74, 18, 111);
/* oklch */ color: oklch(33.1% 0.148 307.0);
Tailwind
colors: {
  custom: {
    50: '#815899',
    500: '#4a126f',
    950: '#000000',
  },
}
SCSS
$custom: #4a126f;
$custom-light: #815899;
$custom-dark: #000000;
JSON
{
  "hex": "#4a126f",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 276.129,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33114,
    "c": 0.14832,
    "h": 307
  },
  "luminance": 0.03036
}

Semantic roles & 50–950 ramp

primary
#4A126F
secondary
#63A637
accent
#EF3981
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A126F

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

Preview Lab → · Contrast checker → · Palette generator →

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