#4A125C#4A125C

#4A125C is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.5% C 0.129 H 316.4°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#4A125C
RGBrgb(74, 18, 92)
HSLhsl(285, 67%, 22%)
HSVhsv(285, 80%, 36%)
CMYKcmyk(19.6%, 80.4%, 0%, 63.9%)
CIE-LABlab(18.63, 37.71, -31.64)
CIE-LCHlch(18.63, 49.23, 320.01°)
OKLaboklab(31.53% 0.0935 -0.0891)
OKLCHoklch(31.53% 0.129 316.4)
XYZxyz(4.9718, 2.6614, 10.3749)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A125C #245C12
analogous
#25125C #4A125C #5C1249
triadic
#4A125C #5C4A12 #125C4A
tetradic
#4A125C #5C2512 #245C12 #12495C
square
#4A125C #5C2512 #245C12 #12495C
split-complementary
#4A125C #495C12 #125C25
monochromatic
#15051A #210829 #4A125C #731C8F #9C26C2

Accessibility & contrast

On white

13.71
#4A125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A125C
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A125C#FFFFFF#000000##FFFFFF
##4A125C1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5E
Deuteranopia (green-blind)
#122F5A
Tritanopia (blue-blind)
#492236
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4a125c;
/* rgb */ color: rgb(74, 18, 92);
/* oklch */ color: oklch(31.5% 0.129 316.4);
Tailwind
colors: {
  custom: {
    50: '#80578b',
    500: '#4a125c',
    950: '#000000',
  },
}
SCSS
$custom: #4a125c;
$custom-light: #80578b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a125c",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 285.405,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.31533,
    "c": 0.12917,
    "h": 316.4
  },
  "luminance": 0.02661
}

Semantic roles & 50–950 ramp

primary
#4A125C
secondary
#4D9435
accent
#EA3E68
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #4A125C

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

Preview Lab → · Contrast checker → · Palette generator →

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