#4A1274#4A1274

#4A1274 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.6% C 0.153 H 304.9°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#4A1274
RGBrgb(74, 18, 116)
HSLhsl(274, 73%, 26%)
HSVhsv(274, 84%, 45%)
CMYKcmyk(36.2%, 84.5%, 0%, 54.5%)
CIE-LABlab(20.63, 43.29, -44.11)
CIE-LCHlch(20.63, 61.81, 314.46°)
OKLaboklab(33.56% 0.0879 -0.1258)
OKLCHoklch(33.56% 0.153 304.9)
XYZxyz(6.1920, 3.1494, 16.8013)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1274 #3C7412
analogous
#191274 #4A1274 #74126D
triadic
#4A1274 #744A12 #12744A
tetradic
#4A1274 #741912 #3C7412 #126D74
square
#4A1274 #741912 #3C7412 #126D74
split-complementary
#4A1274 #6D7412 #127419
monochromatic
#11041A #280A3F #4A1274 #6C1AA9 #8D23DD

Accessibility & contrast

On white

12.89
#4A1274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1274
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1274#FFFFFF#000000##FFFFFF
##4A12741.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#003272
Tritanopia (blue-blind)
#422D44
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4a1274;
/* rgb */ color: rgb(74, 18, 116);
/* oklch */ color: oklch(33.6% 0.153 304.9);
Tailwind
colors: {
  custom: {
    50: '#82589d',
    500: '#4a1274',
    950: '#000000',
  },
}
SCSS
$custom: #4a1274;
$custom-light: #82589d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1274",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 116
  },
  "hsl": {
    "h": 274.286,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.33562,
    "c": 0.15341,
    "h": 304.9
  },
  "luminance": 0.03149
}

Semantic roles & 50–950 ramp

primary
#4A1274
secondary
#69AB37
accent
#F03887
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1274

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

Preview Lab → · Contrast checker → · Palette generator →

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