#4A1FA6#4A1FA6

#4A1FA6 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.195 H 288.4°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#4A1FA6
RGBrgb(74, 31, 166)
HSLhsl(259, 69%, 39%)
HSVhsv(259, 81%, 65%)
CMYKcmyk(55.4%, 81.3%, 0%, 34.9%)
CIE-LABlab(27.27, 51.08, -64.38)
CIE-LCHlch(27.27, 82.18, 308.43°)
OKLaboklab(39.63% 0.0616 -0.1853)
OKLCHoklch(39.63% 0.195 288.4)
XYZxyz(10.1949, 5.1885, 36.5333)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1FA6 #7BA61F
analogous
#1F37A6 #4A1FA6 #8D1FA6
triadic
#4A1FA6 #A64A1F #1FA64A
tetradic
#4A1FA6 #A61F37 #7BA61F #1FA68D
square
#4A1FA6 #A61F37 #7BA61F #1FA68D
split-complementary
#4A1FA6 #A68D1F #37A61F
monochromatic
#1C0C3F #331572 #4A1FA6 #622BD7 #885EE1

Accessibility & contrast

On white

10.31
#4A1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4A1FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1FA6
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1FA6#FFFFFF#000000##FFFFFF
##4A1FA61.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#003DA4
Tritanopia (blue-blind)
#234763
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4a1fa6;
/* rgb */ color: rgb(74, 31, 166);
/* oklch */ color: oklch(39.6% 0.195 288.4);
Tailwind
colors: {
  custom: {
    50: '#8761c2',
    500: '#4a1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #4a1fa6;
$custom-light: #8761c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1fa6",
  "rgb": {
    "r": 74,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 259.111,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39631,
    "c": 0.19524,
    "h": 288.4
  },
  "luminance": 0.05189
}

Semantic roles & 50–950 ramp

primary
#4A1FA6
secondary
#A4C55B
accent
#EB3CB4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #4A1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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