#4A1DA8#4A1DA8

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

Color values

HEX#4A1DA8
RGBrgb(74, 29, 168)
HSLhsl(259, 71%, 39%)
HSVhsv(259, 83%, 66%)
CMYKcmyk(56%, 82.7%, 0%, 34.1%)
CIE-LABlab(27.19, 52.44, -65.71)
CIE-LCHlch(27.19, 84.08, 308.59°)
OKLaboklab(39.64% 0.0621 -0.1891)
OKLCHoklch(39.64% 0.199 288.2)
XYZxyz(10.3292, 5.1612, 37.4901)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1DA8 #7BA81D
analogous
#1D36A8 #4A1DA8 #8F1DA8
triadic
#4A1DA8 #A84A1D #1DA84A
tetradic
#4A1DA8 #A81D36 #7BA81D #1DA88F
square
#4A1DA8 #A81D36 #7BA81D #1DA88F
split-complementary
#4A1DA8 #A88F1D #36A81D
monochromatic
#1C0B40 #331474 #4A1DA8 #6228DA #885CE3

Accessibility & contrast

On white

10.33
#4A1DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4A1DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1DA8
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1DA8#FFFFFF#000000##FFFFFF
##4A1DA81.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AC
Deuteranopia (green-blind)
#003DA6
Tritanopia (blue-blind)
#214764
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4a1da8;
/* rgb */ color: rgb(74, 29, 168);
/* oklch */ color: oklch(39.6% 0.199 288.2);
Tailwind
colors: {
  custom: {
    50: '#8860c3',
    500: '#4a1da8',
    950: '#000000',
  },
}
SCSS
$custom: #4a1da8;
$custom-light: #8860c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1da8",
  "rgb": {
    "r": 74,
    "g": 29,
    "b": 168
  },
  "hsl": {
    "h": 259.424,
    "s": 70.558,
    "l": 38.627
  },
  "oklch": {
    "l": 0.3964,
    "c": 0.19908,
    "h": 288.2
  },
  "luminance": 0.05162
}

Semantic roles & 50–950 ramp

primary
#4A1DA8
secondary
#A4C75A
accent
#ED3AB3
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0D0513
muted
#7D7982

Preview Lab

Preview with #4A1DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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