#4A1266#4A1266

#4A1266 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.3% C 0.139 H 311.2°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#4A1266
RGBrgb(74, 18, 102)
HSLhsl(280, 70%, 24%)
HSVhsv(280, 82%, 40%)
CMYKcmyk(27.5%, 82.4%, 0%, 60%)
CIE-LABlab(19.42, 39.98, -36.98)
CIE-LCHlch(19.42, 54.46, 317.23°)
OKLaboklab(32.34% 0.0916 -0.1048)
OKLCHoklch(32.34% 0.139 311.2)
XYZxyz(5.4382, 2.8479, 12.8310)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1266 #2E6612
analogous
#201266 #4A1266 #661258
triadic
#4A1266 #664A12 #12664A
tetradic
#4A1266 #662012 #2E6612 #125866
square
#4A1266 #662012 #2E6612 #125866
split-complementary
#4A1266 #586612 #126620
monochromatic
#13051A #240932 #4A1266 #701B9A #9524CE

Accessibility & contrast

On white

13.38
#4A1266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1266
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1266#FFFFFF#000000##FFFFFF
##4A12661.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D68
Deuteranopia (green-blind)
#003064
Tritanopia (blue-blind)
#46273C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4a1266;
/* rgb */ color: rgb(74, 18, 102);
/* oklch */ color: oklch(32.3% 0.139 311.2);
Tailwind
colors: {
  custom: {
    50: '#805792',
    500: '#4a1266',
    950: '#000000',
  },
}
SCSS
$custom: #4a1266;
$custom-light: #805792;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1266",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 280,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.3234,
    "c": 0.1392,
    "h": 311.2
  },
  "luminance": 0.02848
}

Semantic roles & 50–950 ramp

primary
#4A1266
secondary
#599E36
accent
#ED3B76
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B030D
muted
#7C787E

Preview Lab

Preview with #4A1266

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

Preview Lab → · Contrast checker → · Palette generator →

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