#4A1272#4A1272

#4A1272 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.151 H 305.8°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#4A1272
RGBrgb(74, 18, 114)
HSLhsl(275, 73%, 26%)
HSVhsv(275, 84%, 45%)
CMYKcmyk(35.1%, 84.2%, 0%, 55.3%)
CIE-LABlab(20.45, 42.81, -43.12)
CIE-LCHlch(20.45, 60.76, 314.79°)
OKLaboklab(33.38% 0.0885 -0.1228)
OKLCHoklch(33.38% 0.151 305.8)
XYZxyz(6.0769, 3.1034, 16.1952)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1272 #3A7212
analogous
#1A1272 #4A1272 #72126A
triadic
#4A1272 #724A12 #12724A
tetradic
#4A1272 #721A12 #3A7212 #126A72
square
#4A1272 #721A12 #3A7212 #126A72
split-complementary
#4A1272 #6A7212 #12721A
monochromatic
#11041A #280A3D #4A1272 #6C1AA7 #8F23DC

Accessibility & contrast

On white

12.96
#4A1272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4A1272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1272
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1272#FFFFFF#000000##FFFFFF
##4A12721.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#432C43
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4a1272;
/* rgb */ color: rgb(74, 18, 114);
/* oklch */ color: oklch(33.4% 0.151 305.8);
Tailwind
colors: {
  custom: {
    50: '#81589b',
    500: '#4a1272',
    950: '#000000',
  },
}
SCSS
$custom: #4a1272;
$custom-light: #81589b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1272",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 275,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33381,
    "c": 0.15137,
    "h": 305.8
  },
  "luminance": 0.03103
}

Semantic roles & 50–950 ramp

primary
#4A1272
secondary
#66A937
accent
#EF3885
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1272

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

Preview Lab → · Contrast checker → · Palette generator →

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