#4A1F97#4A1F97

#4A1F97 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.179 H 291.9°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#4A1F97
RGBrgb(74, 31, 151)
HSLhsl(262, 66%, 36%)
HSVhsv(262, 79%, 59%)
CMYKcmyk(51%, 79.5%, 0%, 40.8%)
CIE-LABlab(25.77, 46.98, -57.69)
CIE-LCHlch(25.77, 74.40, 309.16°)
OKLaboklab(38.15% 0.0665 -0.1657)
OKLCHoklch(38.15% 0.179 291.9)
XYZxyz(8.8984, 4.6698, 29.7047)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1F97 #6C971F
analogous
#1F3097 #4A1F97 #861F97
triadic
#4A1F97 #974A1F #1F974A
tetradic
#4A1F97 #971F30 #6C971F #1F9786
square
#4A1F97 #971F30 #6C971F #1F9786
split-complementary
#4A1F97 #97861F #30971F
monochromatic
#180A31 #311564 #4A1F97 #6329CA #8554DC

Accessibility & contrast

On white

10.86
#4A1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1F97
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1F97#FFFFFF#000000##FFFFFF
##4A1F971.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#30415B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4a1f97;
/* rgb */ color: rgb(74, 31, 151);
/* oklch */ color: oklch(38.1% 0.179 291.9);
Tailwind
colors: {
  custom: {
    50: '#8560b7',
    500: '#4a1f97',
    950: '#000000',
  },
}
SCSS
$custom: #4a1f97;
$custom-light: #8560b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1f97",
  "rgb": {
    "r": 74,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 261.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38145,
    "c": 0.17854,
    "h": 291.9
  },
  "luminance": 0.0467
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4A1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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