#4A1FB4#4A1FB4

#4A1FB4 is a dark, highly saturated violet. Relative luminance 0.057; OKLCH L 41.1% C 0.211 H 285.6°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#4A1FB4
RGBrgb(74, 31, 180)
HSLhsl(257, 71%, 41%)
HSVhsv(257, 83%, 71%)
CMYKcmyk(58.9%, 82.8%, 0%, 29.4%)
CIE-LABlab(28.72, 54.89, -70.38)
CIE-LCHlch(28.72, 89.26, 307.95°)
OKLaboklab(41.07% 0.0568 -0.2028)
OKLCHoklch(41.07% 0.211 285.6)
XYZxyz(11.5497, 5.7304, 43.6686)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1FB4 #89B41F
analogous
#1F3FB4 #4A1FB4 #951FB4
triadic
#4A1FB4 #B44A1F #1FB44A
tetradic
#4A1FB4 #B41F3F #89B41F #1FB495
square
#4A1FB4 #B41F3F #89B41F #1FB495
split-complementary
#4A1FB4 #B4951F #3FB41F
monochromatic
#1F0D4C #351680 #4A1FB4 #6534DC #8C68E5

Accessibility & contrast

On white

9.78
#4A1FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4A1FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1FB4
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1FB4#FFFFFF#000000##FFFFFF
##4A1FB41.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B8
Deuteranopia (green-blind)
#003FB1
Tritanopia (blue-blind)
#0B4D6C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4a1fb4;
/* rgb */ color: rgb(74, 31, 180);
/* oklch */ color: oklch(41.1% 0.211 285.6);
Tailwind
colors: {
  custom: {
    50: '#8a62cc',
    500: '#4a1fb4',
    950: '#000000',
  },
}
SCSS
$custom: #4a1fb4;
$custom-light: #8a62cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1fb4",
  "rgb": {
    "r": 74,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 257.315,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4107,
    "c": 0.21058,
    "h": 285.6
  },
  "luminance": 0.05731
}

Semantic roles & 50–950 ramp

primary
#4A1FB4
secondary
#ADCB64
accent
#ED3ABA
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0514
muted
#7E7A82

Preview Lab

Preview with #4A1FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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