#4A125A#4A125A

#4A125A is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.4% C 0.127 H 317.5°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#4A125A
RGBrgb(74, 18, 90)
HSLhsl(287, 67%, 21%)
HSVhsv(287, 80%, 35%)
CMYKcmyk(17.8%, 80%, 0%, 64.7%)
CIE-LABlab(18.48, 37.27, -30.54)
CIE-LCHlch(18.48, 48.19, 320.67°)
OKLaboklab(31.38% 0.0938 -0.0859)
OKLCHoklch(31.38% 0.127 317.5)
XYZxyz(4.8855, 2.6269, 9.9206)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A125A #225A12
analogous
#26125A #4A125A #5A1246
triadic
#4A125A #5A4A12 #125A4A
tetradic
#4A125A #5A2612 #225A12 #12465A
square
#4A125A #5A2612 #225A12 #12465A
split-complementary
#4A125A #465A12 #125A26
monochromatic
#15051A #200827 #4A125A #741C8D #9E26C0

Accessibility & contrast

On white

13.77
#4A125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A125A
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A125A#FFFFFF#000000##FFFFFF
##4A125A1.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5C
Deuteranopia (green-blind)
#142F58
Tritanopia (blue-blind)
#492135
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4a125a;
/* rgb */ color: rgb(74, 18, 90);
/* oklch */ color: oklch(31.4% 0.127 317.5);
Tailwind
colors: {
  custom: {
    50: '#7f5789',
    500: '#4a125a',
    950: '#000000',
  },
}
SCSS
$custom: #4a125a;
$custom-light: #7f5789;
$custom-dark: #000000;
JSON
{
  "hex": "#4a125a",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 286.667,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31378,
    "c": 0.12718,
    "h": 317.5
  },
  "luminance": 0.02627
}

Semantic roles & 50–950 ramp

primary
#4A125A
secondary
#4A9335
accent
#EA3E64
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A030B
muted
#7C787C

Preview Lab

Preview with #4A125A

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

Preview Lab → · Contrast checker → · Palette generator →

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