#4A1F8B#4A1F8B

#4A1F8B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.165 H 295.1°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#4A1F8B
RGBrgb(74, 31, 139)
HSLhsl(264, 64%, 33%)
HSVhsv(264, 78%, 55%)
CMYKcmyk(46.8%, 77.7%, 0%, 45.5%)
CIE-LABlab(24.64, 43.71, -52.13)
CIE-LCHlch(24.64, 68.03, 309.98°)
OKLaboklab(37.01% 0.07 -0.1494)
OKLCHoklch(37.01% 0.165 295.1)
XYZxyz(7.9730, 4.2997, 24.8309)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1F8B #608B1F
analogous
#1F2A8B #4A1F8B #801F8B
triadic
#4A1F8B #8B4A1F #1F8B4A
tetradic
#4A1F8B #8B1F2A #608B1F #1F8B80
square
#4A1F8B #8B1F2A #608B1F #1F8B80
split-complementary
#4A1F8B #8B801F #2A8B1F
monochromatic
#150927 #2F1459 #4A1F8B #652ABD #844DD7

Accessibility & contrast

On white

11.29
#4A1F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4A1F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1F8B
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1F8B#FFFFFF#000000##FFFFFF
##4A1F8B1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#373C54
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4a1f8b;
/* rgb */ color: rgb(74, 31, 139);
/* oklch */ color: oklch(37.0% 0.165 295.1);
Tailwind
colors: {
  custom: {
    50: '#8360ae',
    500: '#4a1f8b',
    950: '#000000',
  },
}
SCSS
$custom: #4a1f8b;
$custom-light: #8360ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1f8b",
  "rgb": {
    "r": 74,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 263.889,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37006,
    "c": 0.16499,
    "h": 295.1
  },
  "luminance": 0.043
}

Semantic roles & 50–950 ramp

primary
#4A1F8B
secondary
#8EBA4C
accent
#E741A5
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A1F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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