#4A1270#4A1270

#4A1270 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.149 H 306.6°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#4A1270
RGBrgb(74, 18, 112)
HSLhsl(276, 72%, 25%)
HSVhsv(276, 84%, 44%)
CMYKcmyk(33.9%, 83.9%, 0%, 56.1%)
CIE-LABlab(20.28, 42.33, -42.11)
CIE-LCHlch(20.28, 59.71, 315.15°)
OKLaboklab(33.2% 0.089 -0.1199)
OKLCHoklch(33.2% 0.149 306.6)
XYZxyz(5.9643, 3.0584, 15.6022)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1270 #387012
analogous
#1B1270 #4A1270 #701267
triadic
#4A1270 #704A12 #12704A
tetradic
#4A1270 #701B12 #387012 #126770
square
#4A1270 #701B12 #387012 #126770
split-complementary
#4A1270 #677012 #12701B
monochromatic
#11041A #270A3B #4A1270 #6D1AA5 #9023D9

Accessibility & contrast

On white

13.03
#4A1270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4A1270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1270
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1270#FFFFFF#000000##FFFFFF
##4A12701.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F73
Deuteranopia (green-blind)
#00316E
Tritanopia (blue-blind)
#432B42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4a1270;
/* rgb */ color: rgb(74, 18, 112);
/* oklch */ color: oklch(33.2% 0.149 306.6);
Tailwind
colors: {
  custom: {
    50: '#81589a',
    500: '#4a1270',
    950: '#000000',
  },
}
SCSS
$custom: #4a1270;
$custom-light: #81589a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1270",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 112
  },
  "hsl": {
    "h": 275.745,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33203,
    "c": 0.14933,
    "h": 306.6
  },
  "luminance": 0.03058
}

Semantic roles & 50–950 ramp

primary
#4A1270
secondary
#64A737
accent
#EF3982
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1270

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

Preview Lab → · Contrast checker → · Palette generator →

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