#4A1FA8#4A1FA8

#4A1FA8 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.197 H 288.0°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#4A1FA8
RGBrgb(74, 31, 168)
HSLhsl(259, 69%, 39%)
HSVhsv(259, 82%, 66%)
CMYKcmyk(56%, 81.5%, 0%, 34.1%)
CIE-LABlab(27.47, 51.62, -65.25)
CIE-LCHlch(27.47, 83.20, 308.35°)
OKLaboklab(39.83% 0.0609 -0.1878)
OKLCHoklch(39.83% 0.197 288)
XYZxyz(10.3798, 5.2624, 37.5070)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1FA8 #7DA81F
analogous
#1F39A8 #4A1FA8 #8F1FA8
triadic
#4A1FA8 #A84A1F #1FA84A
tetradic
#4A1FA8 #A81F39 #7DA81F #1FA88F
square
#4A1FA8 #A81F39 #7DA81F #1FA88F
split-complementary
#4A1FA8 #A88F1F #39A81F
monochromatic
#1C0C41 #331574 #4A1FA8 #622CD8 #8960E2

Accessibility & contrast

On white

10.23
#4A1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1FA8
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1FA8#FFFFFF#000000##FFFFFF
##4A1FA81.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#003DA6
Tritanopia (blue-blind)
#214865
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4a1fa8;
/* rgb */ color: rgb(74, 31, 168);
/* oklch */ color: oklch(39.8% 0.197 288.0);
Tailwind
colors: {
  custom: {
    50: '#8861c3',
    500: '#4a1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #4a1fa8;
$custom-light: #8861c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1fa8",
  "rgb": {
    "r": 74,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 258.832,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39834,
    "c": 0.19744,
    "h": 288
  },
  "luminance": 0.05263
}

Semantic roles & 50–950 ramp

primary
#4A1FA8
secondary
#A5C65D
accent
#EC3CB5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0513
muted
#7D7A82

Preview Lab

Preview with #4A1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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