#4A1F9C#4A1F9C

#4A1F9C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.184 H 290.6°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#4A1F9C
RGBrgb(74, 31, 156)
HSLhsl(261, 67%, 37%)
HSVhsv(261, 80%, 61%)
CMYKcmyk(52.6%, 80.1%, 0%, 38.8%)
CIE-LABlab(26.26, 48.35, -59.95)
CIE-LCHlch(26.26, 77.02, 308.88°)
OKLaboklab(38.63% 0.0649 -0.1723)
OKLCHoklch(38.63% 0.184 290.6)
XYZxyz(9.3131, 4.8357, 31.8887)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1F9C #719C1F
analogous
#1F339C #4A1F9C #891F9C
triadic
#4A1F9C #9C4A1F #1F9C4A
tetradic
#4A1F9C #9C1F33 #719C1F #1F9C89
square
#4A1F9C #9C1F33 #719C1F #1F9C89
split-complementary
#4A1F9C #9C891F #339C1F
monochromatic
#1A0B36 #321569 #4A1F9C #6229CF #8658DE

Accessibility & contrast

On white

10.68
#4A1F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4A1F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1F9C
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1F9C#FFFFFF#000000##FFFFFF
##4A1F9C1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409F
Deuteranopia (green-blind)
#003B9A
Tritanopia (blue-blind)
#2C435E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4a1f9c;
/* rgb */ color: rgb(74, 31, 156);
/* oklch */ color: oklch(38.6% 0.184 290.6);
Tailwind
colors: {
  custom: {
    50: '#8661ba',
    500: '#4a1f9c',
    950: '#000000',
  },
}
SCSS
$custom: #4a1f9c;
$custom-light: #8661ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1f9c",
  "rgb": {
    "r": 74,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 260.64,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38634,
    "c": 0.18414,
    "h": 290.6
  },
  "luminance": 0.04836
}

Semantic roles & 50–950 ramp

primary
#4A1F9C
secondary
#9CC155
accent
#EA3EAF
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4A1F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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