#4A125B#4A125B

#4A125B is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.5% C 0.128 H 316.9°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#4A125B
RGBrgb(74, 18, 91)
HSLhsl(286, 67%, 21%)
HSVhsv(286, 80%, 36%)
CMYKcmyk(18.7%, 80.2%, 0%, 64.3%)
CIE-LABlab(18.56, 37.49, -31.09)
CIE-LCHlch(18.56, 48.71, 320.33°)
OKLaboklab(31.46% 0.0937 -0.0875)
OKLCHoklch(31.46% 0.128 316.9)
XYZxyz(4.9284, 2.6440, 10.1462)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A125B #235B12
analogous
#26125B #4A125B #5B1248
triadic
#4A125B #5B4A12 #125B4A
tetradic
#4A125B #5B2612 #235B12 #12485B
square
#4A125B #5B2612 #235B12 #12485B
split-complementary
#4A125B #485B12 #125B26
monochromatic
#15051A #200828 #4A125B #741C8E #9D26C1

Accessibility & contrast

On white

13.74
#4A125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A125B
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A125B#FFFFFF#000000##FFFFFF
##4A125B1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5D
Deuteranopia (green-blind)
#132F59
Tritanopia (blue-blind)
#492236
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4a125b;
/* rgb */ color: rgb(74, 18, 91);
/* oklch */ color: oklch(31.5% 0.128 316.9);
Tailwind
colors: {
  custom: {
    50: '#7f578a',
    500: '#4a125b',
    950: '#000000',
  },
}
SCSS
$custom: #4a125b;
$custom-light: #7f578a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a125b",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 286.027,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31455,
    "c": 0.12817,
    "h": 316.9
  },
  "luminance": 0.02644
}

Semantic roles & 50–950 ramp

primary
#4A125B
secondary
#4B9335
accent
#EA3E66
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #4A125B

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

Preview Lab → · Contrast checker → · Palette generator →

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