#4A1281#4A1281

#4A1281 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.167 H 300.0°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#4A1281
RGBrgb(74, 18, 129)
HSLhsl(270, 76%, 29%)
HSVhsv(270, 86%, 51%)
CMYKcmyk(42.6%, 86%, 0%, 49.4%)
CIE-LABlab(21.85, 46.46, -50.42)
CIE-LCHlch(21.85, 68.56, 312.66°)
OKLaboklab(34.78% 0.0835 -0.1443)
OKLCHoklch(34.78% 0.167 300)
XYZxyz(7.0018, 3.4734, 21.0662)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1281 #498112
analogous
#121281 #4A1281 #811281
triadic
#4A1281 #814A12 #12814A
tetradic
#4A1281 #811212 #498112 #128181
square
#4A1281 #811212 #498112 #128181
split-complementary
#4A1281 #818112 #128112
monochromatic
#0F041B #2B0B4B #4A1281 #6919B7 #882CE2

Accessibility & contrast

On white

12.39
#4A1281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4A1281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1281
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1281#FFFFFF#000000##FFFFFF
##4A12811.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#00337F
Tritanopia (blue-blind)
#3D334B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a1281;
/* rgb */ color: rgb(74, 18, 129);
/* oklch */ color: oklch(34.8% 0.167 300.0);
Tailwind
colors: {
  custom: {
    50: '#8359a7',
    500: '#4a1281',
    950: '#000000',
  },
}
SCSS
$custom: #4a1281;
$custom-light: #8359a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1281",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 270.27,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34776,
    "c": 0.16667,
    "h": 300
  },
  "luminance": 0.03473
}

Semantic roles & 50–950 ramp

primary
#4A1281
secondary
#77B738
accent
#F23693
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A1281

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

Preview Lab → · Contrast checker → · Palette generator →

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