#4A1F81#4A1F81

#4A1F81 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.154 H 298.2°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#4A1F81
RGBrgb(74, 31, 129)
HSLhsl(266, 61%, 31%)
HSVhsv(266, 76%, 51%)
CMYKcmyk(42.6%, 76%, 0%, 49.4%)
CIE-LABlab(23.74, 41.01, -47.32)
CIE-LCHlch(23.74, 62.62, 310.91°)
OKLaboklab(36.1% 0.0726 -0.1353)
OKLCHoklch(36.1% 0.154 298.2)
XYZxyz(7.2755, 4.0207, 21.1574)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1F81 #56811F
analogous
#1F2581 #4A1F81 #7B1F81
triadic
#4A1F81 #814A1F #1F814A
tetradic
#4A1F81 #811F25 #56811F #1F817B
square
#4A1F81 #811F25 #56811F #1F817B
split-complementary
#4A1F81 #817B1F #25811F
monochromatic
#11071E #2E1350 #4A1F81 #662BB2 #8547D3

Accessibility & contrast

On white

11.64
#4A1F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4A1F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1F81
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1F81#FFFFFF#000000##FFFFFF
##4A1F811.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003984
Deuteranopia (green-blind)
#00377F
Tritanopia (blue-blind)
#3C384E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4a1f81;
/* rgb */ color: rgb(74, 31, 129);
/* oklch */ color: oklch(36.1% 0.154 298.2);
Tailwind
colors: {
  custom: {
    50: '#825fa6',
    500: '#4a1f81',
    950: '#000000',
  },
}
SCSS
$custom: #4a1f81;
$custom-light: #825fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1f81",
  "rgb": {
    "r": 74,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 266.327,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36097,
    "c": 0.15356,
    "h": 298.2
  },
  "luminance": 0.04021
}

Semantic roles & 50–950 ramp

primary
#4A1F81
secondary
#85B448
accent
#E4439E
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A1F81

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

Preview Lab → · Contrast checker → · Palette generator →

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