#4A1254#4A1254

#4A1254 is a dark, vivid purple. Relative luminance 0.025; OKLCH L 30.9% C 0.121 H 321.1°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#4A1254
RGBrgb(74, 18, 84)
HSLhsl(291, 65%, 20%)
HSVhsv(291, 79%, 33%)
CMYKcmyk(11.9%, 78.6%, 0%, 67.1%)
CIE-LABlab(18.05, 35.98, -27.20)
CIE-LCHlch(18.05, 45.11, 322.91°)
OKLaboklab(30.93% 0.0944 -0.0761)
OKLCHoklch(30.93% 0.121 321.1)
XYZxyz(4.6404, 2.5288, 8.6295)
Luminance0.0253 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1254 #1C5412
analogous
#291254 #4A1254 #54123D
triadic
#4A1254 #544A12 #12544A
tetradic
#4A1254 #542912 #1C5412 #123D54
square
#4A1254 #542912 #1C5412 #123D54
split-complementary
#4A1254 #3D5412 #125429
monochromatic
#160519 #1E0722 #4A1254 #761D86 #A328B9

Accessibility & contrast

On white

13.95
#4A1254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#4A1254 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1254
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1254#FFFFFF#000000##FFFFFF
##4A12541.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002856
Deuteranopia (green-blind)
#1A2E52
Tritanopia (blue-blind)
#4B1F32
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4a1254;
/* rgb */ color: rgb(74, 18, 84);
/* oklch */ color: oklch(30.9% 0.121 321.1);
Tailwind
colors: {
  custom: {
    50: '#7f5684',
    500: '#4a1254',
    950: '#000000',
  },
}
SCSS
$custom: #4a1254;
$custom-light: #7f5684;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1254",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 290.909,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.3093,
    "c": 0.12127,
    "h": 321.1
  },
  "luminance": 0.02529
}

Semantic roles & 50–950 ramp

primary
#4A1254
secondary
#428D35
accent
#E8405A
background
#F7F5F8
surface
#EEE9EF
border
#C9C5CA
text
#0A030B
muted
#7C787C

Preview Lab

Preview with #4A1254

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

Preview Lab → · Contrast checker → · Palette generator →

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