#4A1273#4A1273

#4A1273 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.152 H 305.3°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#4A1273
RGBrgb(74, 18, 115)
HSLhsl(275, 73%, 26%)
HSVhsv(275, 84%, 45%)
CMYKcmyk(35.7%, 84.3%, 0%, 54.9%)
CIE-LABlab(20.54, 43.05, -43.62)
CIE-LCHlch(20.54, 61.28, 314.62°)
OKLaboklab(33.47% 0.0882 -0.1243)
OKLCHoklch(33.47% 0.152 305.3)
XYZxyz(6.1342, 3.1263, 16.4966)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1273 #3B7312
analogous
#191273 #4A1273 #73126B
triadic
#4A1273 #734A12 #12734A
tetradic
#4A1273 #731912 #3B7312 #126B73
square
#4A1273 #731912 #3B7312 #126B73
split-complementary
#4A1273 #6B7312 #127319
monochromatic
#11041A #280A3E #4A1273 #6C1AA8 #8E23DD

Accessibility & contrast

On white

12.92
#4A1273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4A1273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1273
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1273#FFFFFF#000000##FFFFFF
##4A12731.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#003271
Tritanopia (blue-blind)
#422C43
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4a1273;
/* rgb */ color: rgb(74, 18, 115);
/* oklch */ color: oklch(33.5% 0.152 305.3);
Tailwind
colors: {
  custom: {
    50: '#81589c',
    500: '#4a1273',
    950: '#000000',
  },
}
SCSS
$custom: #4a1273;
$custom-light: #81589c;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1273",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 274.639,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.33471,
    "c": 0.15238,
    "h": 305.3
  },
  "luminance": 0.03126
}

Semantic roles & 50–950 ramp

primary
#4A1273
secondary
#68AA37
accent
#F03886
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1273

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

Preview Lab → · Contrast checker → · Palette generator →

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