#4A115E#4A115E

#4A115E is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.6% C 0.132 H 315.4°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#4A115E
RGBrgb(74, 17, 94)
HSLhsl(284, 69%, 22%)
HSVhsv(284, 82%, 37%)
CMYKcmyk(21.3%, 81.9%, 0%, 63.1%)
CIE-LABlab(18.65, 38.55, -32.94)
CIE-LCHlch(18.65, 50.71, 319.48°)
OKLaboklab(31.59% 0.0942 -0.0929)
OKLCHoklch(31.59% 0.132 315.4)
XYZxyz(5.0445, 2.6651, 10.8362)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A115E #255E11
analogous
#24115E #4A115E #5E114C
triadic
#4A115E #5E4A11 #115E4A
tetradic
#4A115E #5E2411 #255E11 #114C5E
square
#4A115E #5E2411 #255E11 #114C5E
split-complementary
#4A115E #4C5E11 #115E24
monochromatic
#14051A #21082A #4A115E #731A92 #9C24C6

Accessibility & contrast

On white

13.70
#4A115E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#4A115E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A115E
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A115E#FFFFFF#000000##FFFFFF
##4A115E1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#0E2F5C
Tritanopia (blue-blind)
#482237
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4a115e;
/* rgb */ color: rgb(74, 17, 94);
/* oklch */ color: oklch(31.6% 0.132 315.4);
Tailwind
colors: {
  custom: {
    50: '#80568c',
    500: '#4a115e',
    950: '#000000',
  },
}
SCSS
$custom: #4a115e;
$custom-light: #80568c;
$custom-dark: #000000;
JSON
{
  "hex": "#4a115e",
  "rgb": {
    "r": 74,
    "g": 17,
    "b": 94
  },
  "hsl": {
    "h": 284.416,
    "s": 69.369,
    "l": 21.765
  },
  "oklch": {
    "l": 0.31593,
    "c": 0.13232,
    "h": 315.4
  },
  "luminance": 0.02665
}

Semantic roles & 50–950 ramp

primary
#4A115E
secondary
#4E9734
accent
#EC3C69
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #4A115E

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

Preview Lab → · Contrast checker → · Palette generator →

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