#4E125C#4E125C

#4E125C is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.2% C 0.131 H 319.2°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#4E125C
RGBrgb(78, 18, 92)
HSLhsl(289, 67%, 22%)
HSVhsv(289, 80%, 36%)
CMYKcmyk(15.2%, 80.4%, 0%, 63.9%)
CIE-LABlab(19.33, 38.61, -30.48)
CIE-LCHlch(19.33, 49.19, 321.71°)
OKLaboklab(32.17% 0.099 -0.0856)
OKLCHoklch(32.17% 0.131 319.2)
XYZxyz(5.2897, 2.8253, 10.3898)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E125C #205C12
analogous
#29125C #4E125C #5C1245
triadic
#4E125C #5C4E12 #125C4E
tetradic
#4E125C #5C2912 #205C12 #12455C
square
#4E125C #5C2912 #205C12 #12455C
split-complementary
#4E125C #455C12 #125C29
monochromatic
#16051A #230829 #4E125C #791C8F #A526C2

Accessibility & contrast

On white

13.42
#4E125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#4E125C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E125C
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E125C#FFFFFF#000000##FFFFFF
##4E125C1.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5E
Deuteranopia (green-blind)
#17315A
Tritanopia (blue-blind)
#4E2136
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4e125c;
/* rgb */ color: rgb(78, 18, 92);
/* oklch */ color: oklch(32.2% 0.131 319.2);
Tailwind
colors: {
  custom: {
    50: '#83578b',
    500: '#4e125c',
    950: '#000000',
  },
}
SCSS
$custom: #4e125c;
$custom-light: #83578b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e125c",
  "rgb": {
    "r": 78,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 288.649,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32166,
    "c": 0.13087,
    "h": 319.2
  },
  "luminance": 0.02825
}

Semantic roles & 50–950 ramp

primary
#4E125C
secondary
#479435
accent
#EA3E5E
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4E125C

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

Preview Lab → · Contrast checker → · Palette generator →

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