#4A1FA7#4A1FA7

#4A1FA7 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.7% C 0.196 H 288.2°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#4A1FA7
RGBrgb(74, 31, 167)
HSLhsl(259, 69%, 39%)
HSVhsv(259, 81%, 65%)
CMYKcmyk(55.7%, 81.4%, 0%, 34.5%)
CIE-LABlab(27.37, 51.35, -64.82)
CIE-LCHlch(27.37, 82.69, 308.39°)
OKLaboklab(39.73% 0.0613 -0.1865)
OKLCHoklch(39.73% 0.196 288.2)
XYZxyz(10.2870, 5.2253, 37.0183)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1FA7 #7CA71F
analogous
#1F38A7 #4A1FA7 #8E1FA7
triadic
#4A1FA7 #A74A1F #1FA74A
tetradic
#4A1FA7 #A71F38 #7CA71F #1FA78E
square
#4A1FA7 #A71F38 #7CA71F #1FA78E
split-complementary
#4A1FA7 #A78E1F #38A71F
monochromatic
#1C0C40 #331573 #4A1FA7 #622BD8 #885FE1

Accessibility & contrast

On white

10.27
#4A1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4A1FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1FA7
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1FA7#FFFFFF#000000##FFFFFF
##4A1FA71.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AB
Deuteranopia (green-blind)
#003DA5
Tritanopia (blue-blind)
#224864
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4a1fa7;
/* rgb */ color: rgb(74, 31, 167);
/* oklch */ color: oklch(39.7% 0.196 288.2);
Tailwind
colors: {
  custom: {
    50: '#8861c2',
    500: '#4a1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #4a1fa7;
$custom-light: #8861c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1fa7",
  "rgb": {
    "r": 74,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 258.971,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39733,
    "c": 0.19634,
    "h": 288.2
  },
  "luminance": 0.05226
}

Semantic roles & 50–950 ramp

primary
#4A1FA7
secondary
#A4C65C
accent
#EC3CB4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0513
muted
#7D7A82

Preview Lab

Preview with #4A1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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