#4A1F9E#4A1F9E

#4A1F9E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.186 H 290.2°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#4A1F9E
RGBrgb(74, 31, 158)
HSLhsl(260, 67%, 37%)
HSVhsv(260, 80%, 62%)
CMYKcmyk(53.2%, 80.4%, 0%, 38%)
CIE-LABlab(26.46, 48.89, -60.85)
CIE-LCHlch(26.46, 78.06, 308.78°)
OKLaboklab(38.83% 0.0643 -0.1749)
OKLCHoklch(38.83% 0.186 290.2)
XYZxyz(9.4838, 4.9040, 32.7880)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1F9E #739E1F
analogous
#1F349E #4A1F9E #8A1F9E
triadic
#4A1F9E #9E4A1F #1F9E4A
tetradic
#4A1F9E #9E1F34 #739E1F #1F9E8A
square
#4A1F9E #9E1F34 #739E1F #1F9E8A
split-complementary
#4A1F9E #9E8A1F #349E1F
monochromatic
#1A0B38 #32156B #4A1F9E #6229D1 #8659DE

Accessibility & contrast

On white

10.60
#4A1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4A1F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1F9E
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1F9E#FFFFFF#000000##FFFFFF
##4A1F9E1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#003C9C
Tritanopia (blue-blind)
#2B445F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4a1f9e;
/* rgb */ color: rgb(74, 31, 158);
/* oklch */ color: oklch(38.8% 0.186 290.2);
Tailwind
colors: {
  custom: {
    50: '#8661bc',
    500: '#4a1f9e',
    950: '#000000',
  },
}
SCSS
$custom: #4a1f9e;
$custom-light: #8661bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1f9e",
  "rgb": {
    "r": 74,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 260.315,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38831,
    "c": 0.18637,
    "h": 290.2
  },
  "luminance": 0.04904
}

Semantic roles & 50–950 ramp

primary
#4A1F9E
secondary
#9EC256
accent
#EA3EB0
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4A1F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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