#4A125F#4A125F

#4A125F is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.8% C 0.132 H 314.7°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#4A125F
RGBrgb(74, 18, 95)
HSLhsl(284, 68%, 22%)
HSVhsv(284, 81%, 37%)
CMYKcmyk(22.1%, 81.1%, 0%, 62.7%)
CIE-LABlab(18.86, 38.38, -33.26)
CIE-LCHlch(18.86, 50.79, 319.09°)
OKLaboklab(31.77% 0.093 -0.0939)
OKLCHoklch(31.77% 0.132 314.7)
XYZxyz(5.1056, 2.7149, 11.0793)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A125F #275F12
analogous
#23125F #4A125F #5F124E
triadic
#4A125F #5F4A12 #125F4A
tetradic
#4A125F #5F2312 #275F12 #124E5F
square
#4A125F #5F2312 #275F12 #124E5F
split-complementary
#4A125F #4E5F12 #125F23
monochromatic
#14051A #22082C #4A125F #721C92 #9A25C6

Accessibility & contrast

On white

13.61
#4A125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A125F
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A125F#FFFFFF#000000##FFFFFF
##4A125F1.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B61
Deuteranopia (green-blind)
#0E2F5D
Tritanopia (blue-blind)
#482338
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4a125f;
/* rgb */ color: rgb(74, 18, 95);
/* oklch */ color: oklch(31.8% 0.132 314.7);
Tailwind
colors: {
  custom: {
    50: '#80578d',
    500: '#4a125f',
    950: '#000000',
  },
}
SCSS
$custom: #4a125f;
$custom-light: #80578d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a125f",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 283.636,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.31769,
    "c": 0.13217,
    "h": 314.7
  },
  "luminance": 0.02715
}

Semantic roles & 50–950 ramp

primary
#4A125F
secondary
#509736
accent
#EB3D6C
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #4A125F

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

Preview Lab → · Contrast checker → · Palette generator →

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