#4A1E7B#4A1E7B

#4A1E7B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.148 H 300.5°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#4A1E7B
RGBrgb(74, 30, 123)
HSLhsl(268, 61%, 30%)
HSVhsv(268, 76%, 48%)
CMYKcmyk(39.8%, 75.6%, 0%, 51.8%)
CIE-LABlab(23.05, 39.89, -44.65)
CIE-LCHlch(23.05, 59.88, 311.78°)
OKLaboklab(35.45% 0.075 -0.1274)
OKLCHoklch(35.45% 0.148 300.5)
XYZxyz(6.8626, 3.8144, 19.1098)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1E7B #4F7B1E
analogous
#1E217B #4A1E7B #781E7B
triadic
#4A1E7B #7B4A1E #1E7B4A
tetradic
#4A1E7B #7B1E21 #4F7B1E #1E7B78
square
#4A1E7B #7B1E21 #4F7B1E #1E7B78
split-complementary
#4A1E7B #7B781E #217B1E
monochromatic
#0F0619 #2C124A #4A1E7B #682AAC #8642D1

Accessibility & contrast

On white

11.91
#4A1E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4A1E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1E7B
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1E7B#FFFFFF#000000##FFFFFF
##4A1E7B1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#3F354B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4a1e7b;
/* rgb */ color: rgb(74, 30, 123);
/* oklch */ color: oklch(35.4% 0.148 300.5);
Tailwind
colors: {
  custom: {
    50: '#815ea2',
    500: '#4a1e7b',
    950: '#000000',
  },
}
SCSS
$custom: #4a1e7b;
$custom-light: #815ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1e7b",
  "rgb": {
    "r": 74,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 268.387,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.35447,
    "c": 0.14787,
    "h": 300.5
  },
  "luminance": 0.03814
}

Semantic roles & 50–950 ramp

primary
#4A1E7B
secondary
#7DAE46
accent
#E44498
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A1E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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