#4A115F#4A115F

#4A115F is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.7% C 0.133 H 314.8°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#4A115F
RGBrgb(74, 17, 95)
HSLhsl(284, 70%, 22%)
HSVhsv(284, 82%, 37%)
CMYKcmyk(22.1%, 82.1%, 0%, 62.7%)
CIE-LABlab(18.73, 38.77, -33.48)
CIE-LCHlch(18.73, 51.23, 319.19°)
OKLaboklab(31.67% 0.094 -0.0945)
OKLCHoklch(31.67% 0.133 314.8)
XYZxyz(5.0897, 2.6832, 11.0740)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A115F #265F11
analogous
#23115F #4A115F #5F114D
triadic
#4A115F #5F4A11 #115F4A
tetradic
#4A115F #5F2311 #265F11 #114D5F
square
#4A115F #5F2311 #265F11 #114D5F
split-complementary
#4A115F #4D5F11 #115F23
monochromatic
#14051A #22082B #4A115F #721A93 #9B24C7

Accessibility & contrast

On white

13.67
#4A115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#4A115F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A115F
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A115F#FFFFFF#000000##FFFFFF
##4A115F1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#0D2F5D
Tritanopia (blue-blind)
#482338
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4a115f;
/* rgb */ color: rgb(74, 17, 95);
/* oklch */ color: oklch(31.7% 0.133 314.8);
Tailwind
colors: {
  custom: {
    50: '#80578d',
    500: '#4a115f',
    950: '#000000',
  },
}
SCSS
$custom: #4a115f;
$custom-light: #80578d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a115f",
  "rgb": {
    "r": 74,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 283.846,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.31673,
    "c": 0.13331,
    "h": 314.8
  },
  "luminance": 0.02683
}

Semantic roles & 50–950 ramp

primary
#4A115F
secondary
#4F9834
accent
#EC3B6B
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #4A115F

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

Preview Lab → · Contrast checker → · Palette generator →

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