#4A1F89#4A1F89

#4A1F89 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.163 H 295.7°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#4A1F89
RGBrgb(74, 31, 137)
HSLhsl(264, 63%, 33%)
HSVhsv(264, 77%, 54%)
CMYKcmyk(46%, 77.4%, 0%, 46.3%)
CIE-LABlab(24.46, 43.17, -51.18)
CIE-LCHlch(24.46, 66.95, 310.15°)
OKLaboklab(36.82% 0.0706 -0.1466)
OKLCHoklch(36.82% 0.163 295.7)
XYZxyz(7.8282, 4.2418, 24.0684)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1F89 #5E891F
analogous
#1F2989 #4A1F89 #7F1F89
triadic
#4A1F89 #894A1F #1F894A
tetradic
#4A1F89 #891F29 #5E891F #1F897F
square
#4A1F89 #891F29 #5E891F #1F897F
split-complementary
#4A1F89 #897F1F #29891F
monochromatic
#140825 #2F1457 #4A1F89 #652ABB #844CD6

Accessibility & contrast

On white

11.36
#4A1F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4A1F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1F89
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1F89#FFFFFF#000000##FFFFFF
##4A1F891.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003987
Tritanopia (blue-blind)
#383B53
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4a1f89;
/* rgb */ color: rgb(74, 31, 137);
/* oklch */ color: oklch(36.8% 0.163 295.7);
Tailwind
colors: {
  custom: {
    50: '#8360ac',
    500: '#4a1f89',
    950: '#000000',
  },
}
SCSS
$custom: #4a1f89;
$custom-light: #8360ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1f89",
  "rgb": {
    "r": 74,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 264.34,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36821,
    "c": 0.16271,
    "h": 295.7
  },
  "luminance": 0.04242
}

Semantic roles & 50–950 ramp

primary
#4A1F89
secondary
#8CB94B
accent
#E642A3
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A1F89

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

Preview Lab → · Contrast checker → · Palette generator →

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