#4A1F96#4A1F96

#4A1F96 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.177 H 292.1°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#4A1F96
RGBrgb(74, 31, 150)
HSLhsl(262, 66%, 35%)
HSVhsv(262, 79%, 59%)
CMYKcmyk(50.7%, 79.3%, 0%, 41.2%)
CIE-LABlab(25.68, 46.71, -57.24)
CIE-LCHlch(25.68, 73.88, 309.22°)
OKLaboklab(38.05% 0.0668 -0.1644)
OKLCHoklch(38.05% 0.177 292.1)
XYZxyz(8.8175, 4.6375, 29.2788)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1F96 #6B961F
analogous
#1F2F96 #4A1F96 #861F96
triadic
#4A1F96 #964A1F #1F964A
tetradic
#4A1F96 #961F2F #6B961F #1F9686
square
#4A1F96 #961F2F #6B961F #1F9686
split-complementary
#4A1F96 #96861F #2F961F
monochromatic
#180A31 #311563 #4A1F96 #6329C9 #8554DC

Accessibility & contrast

On white

10.89
#4A1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4A1F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1F96
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1F96#FFFFFF#000000##FFFFFF
##4A1F961.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E99
Deuteranopia (green-blind)
#003A94
Tritanopia (blue-blind)
#31415A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4a1f96;
/* rgb */ color: rgb(74, 31, 150);
/* oklch */ color: oklch(38.0% 0.177 292.1);
Tailwind
colors: {
  custom: {
    50: '#8560b6',
    500: '#4a1f96',
    950: '#000000',
  },
}
SCSS
$custom: #4a1f96;
$custom-light: #8560b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1f96",
  "rgb": {
    "r": 74,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 261.681,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38049,
    "c": 0.17743,
    "h": 292.1
  },
  "luminance": 0.04638
}

Semantic roles & 50–950 ramp

primary
#4A1F96
secondary
#98BF52
accent
#E93FAB
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4A1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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