#4A1EB4#4A1EB4

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

Color values

HEX#4A1EB4
RGBrgb(74, 30, 180)
HSLhsl(258, 71%, 41%)
HSVhsv(258, 83%, 71%)
CMYKcmyk(58.9%, 83.3%, 0%, 29.4%)
CIE-LABlab(28.59, 55.28, -70.61)
CIE-LCHlch(28.59, 89.67, 308.06°)
OKLaboklab(40.98% 0.0573 -0.2034)
OKLCHoklch(40.98% 0.211 285.7)
XYZxyz(11.5240, 5.6790, 43.6601)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1EB4 #88B41E
analogous
#1E3DB4 #4A1EB4 #951EB4
triadic
#4A1EB4 #B44A1E #1EB44A
tetradic
#4A1EB4 #B41E3D #88B41E #1EB495
square
#4A1EB4 #B41E3D #88B41E #1EB495
split-complementary
#4A1EB4 #B4951E #3DB41E
monochromatic
#1F0D4B #341580 #4A1EB4 #6432DD #8C67E6

Accessibility & contrast

On white

9.83
#4A1EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4A1EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1EB4
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1EB4#FFFFFF#000000##FFFFFF
##4A1EB41.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a1eb4;
/* rgb */ color: rgb(74, 30, 180);
/* oklch */ color: oklch(41.0% 0.211 285.7);
Tailwind
colors: {
  custom: {
    50: '#8a62cc',
    500: '#4a1eb4',
    950: '#000000',
  },
}
SCSS
$custom: #4a1eb4;
$custom-light: #8a62cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1eb4",
  "rgb": {
    "r": 74,
    "g": 30,
    "b": 180
  },
  "hsl": {
    "h": 257.6,
    "s": 71.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40978,
    "c": 0.21133,
    "h": 285.7
  },
  "luminance": 0.0568
}

Semantic roles & 50–950 ramp

primary
#4A1EB4
secondary
#ACCB63
accent
#EE3AB9
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0514
muted
#7E7A82

Preview Lab

Preview with #4A1EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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