#4A125E#4A125E

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

Color values

HEX#4A125E
RGBrgb(74, 18, 94)
HSLhsl(284, 68%, 22%)
HSVhsv(284, 81%, 37%)
CMYKcmyk(21.3%, 80.9%, 0%, 63.1%)
CIE-LABlab(18.79, 38.16, -32.72)
CIE-LCHlch(18.79, 50.27, 319.39°)
OKLaboklab(31.69% 0.0932 -0.0923)
OKLCHoklch(31.69% 0.131 315.3)
XYZxyz(5.0604, 2.6968, 10.8415)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A125E #265E12
analogous
#24125E #4A125E #5E124C
triadic
#4A125E #5E4A12 #125E4A
tetradic
#4A125E #5E2412 #265E12 #124C5E
square
#4A125E #5E2412 #265E12 #124C5E
split-complementary
#4A125E #4C5E12 #125E24
monochromatic
#14051A #22082B #4A125E #721C91 #9B26C5

Accessibility & contrast

On white

13.64
#4A125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A125E
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A125E#FFFFFF#000000##FFFFFF
##4A125E1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B60
Deuteranopia (green-blind)
#0F2F5C
Tritanopia (blue-blind)
#482337
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4a125e;
/* rgb */ color: rgb(74, 18, 94);
/* oklch */ color: oklch(31.7% 0.131 315.3);
Tailwind
colors: {
  custom: {
    50: '#80578c',
    500: '#4a125e',
    950: '#000000',
  },
}
SCSS
$custom: #4a125e;
$custom-light: #80578c;
$custom-dark: #000000;
JSON
{
  "hex": "#4a125e",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 284.211,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.31689,
    "c": 0.13116,
    "h": 315.3
  },
  "luminance": 0.02697
}

Semantic roles & 50–950 ramp

primary
#4A125E
secondary
#4F9635
accent
#EB3D6B
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #4A125E

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

Preview Lab → · Contrast checker → · Palette generator →

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