#4A1E7F#4A1E7F

#4A1E7F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.152 H 299.1°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#4A1E7F
RGBrgb(74, 30, 127)
HSLhsl(267, 62%, 31%)
HSVhsv(267, 76%, 50%)
CMYKcmyk(41.7%, 76.4%, 0%, 50.2%)
CIE-LABlab(23.39, 40.95, -46.63)
CIE-LCHlch(23.39, 62.06, 311.30°)
OKLaboklab(35.8% 0.0741 -0.1332)
OKLCHoklch(35.8% 0.152 299.1)
XYZxyz(7.1181, 3.9166, 20.4555)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1E7F #537F1E
analogous
#1E237F #4A1E7F #7A1E7F
triadic
#4A1E7F #7F4A1E #1E7F4A
tetradic
#4A1E7F #7F1E23 #537F1E #1E7F7A
square
#4A1E7F #7F1E23 #537F1E #1E7F7A
split-complementary
#4A1E7F #7F7A1E #237F1E
monochromatic
#10071C #2D124D #4A1E7F #672AB1 #8544D3

Accessibility & contrast

On white

11.78
#4A1E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4A1E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1E7F
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1E7F#FFFFFF#000000##FFFFFF
##4A1E7F1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#3D374D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4a1e7f;
/* rgb */ color: rgb(74, 30, 127);
/* oklch */ color: oklch(35.8% 0.152 299.1);
Tailwind
colors: {
  custom: {
    50: '#825ea5',
    500: '#4a1e7f',
    950: '#000000',
  },
}
SCSS
$custom: #4a1e7f;
$custom-light: #825ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1e7f",
  "rgb": {
    "r": 74,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 267.216,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35798,
    "c": 0.15245,
    "h": 299.1
  },
  "luminance": 0.03917
}

Semantic roles & 50–950 ramp

primary
#4A1E7F
secondary
#81B247
accent
#E5439B
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A1E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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