#4A195F#4A195F

#4A195F is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.5% C 0.123 H 313.8°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#4A195F
RGBrgb(74, 25, 95)
HSLhsl(282, 58%, 24%)
HSVhsv(282, 74%, 37%)
CMYKcmyk(22.1%, 73.7%, 0%, 62.7%)
CIE-LABlab(19.95, 35.29, -31.51)
CIE-LCHlch(19.95, 47.31, 318.24°)
OKLaboklab(32.54% 0.0853 -0.0888)
OKLCHoklch(32.54% 0.123 313.8)
XYZxyz(5.2369, 2.9775, 11.1231)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A195F #2E5F19
analogous
#27195F #4A195F #5F1951
triadic
#4A195F #5F4A19 #195F4A
tetradic
#4A195F #5F2719 #2E5F19 #19515F
square
#4A195F #5F2719 #2E5F19 #19515F
split-complementary
#4A195F #515F19 #195F27
monochromatic
#130618 #240C2F #4A195F #70268F #9532C0

Accessibility & contrast

On white

13.16
#4A195F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#4A195F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A195F
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A195F#FFFFFF#000000##FFFFFF
##4A195F1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#15315D
Tritanopia (blue-blind)
#48273A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4a195f;
/* rgb */ color: rgb(74, 25, 95);
/* oklch */ color: oklch(32.5% 0.123 313.8);
Tailwind
colors: {
  custom: {
    50: '#7f5a8d',
    500: '#4a195f',
    950: '#000000',
  },
}
SCSS
$custom: #4a195f;
$custom-light: #7f5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a195f",
  "rgb": {
    "r": 74,
    "g": 25,
    "b": 95
  },
  "hsl": {
    "h": 282,
    "s": 58.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.32543,
    "c": 0.1231,
    "h": 313.8
  },
  "luminance": 0.02977
}

Semantic roles & 50–950 ramp

primary
#4A195F
secondary
#59953F
accent
#E24675
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A040C
muted
#7C797D

Preview Lab

Preview with #4A195F

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

Preview Lab → · Contrast checker → · Palette generator →

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