#4A1C7D#4A1C7D

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

Color values

HEX#4A1C7D
RGBrgb(74, 28, 125)
HSLhsl(268, 63%, 30%)
HSVhsv(268, 78%, 49%)
CMYKcmyk(40.8%, 77.6%, 0%, 51%)
CIE-LABlab(22.89, 41.37, -46.19)
CIE-LCHlch(22.89, 62.01, 311.85°)
OKLaboklab(35.39% 0.0765 -0.1319)
OKLCHoklch(35.39% 0.153 300.1)
XYZxyz(6.9400, 3.7670, 19.7595)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1C7D #4F7D1C
analogous
#1C1E7D #4A1C7D #7B1C7D
triadic
#4A1C7D #7D4A1C #1C7D4A
tetradic
#4A1C7D #7D1C1E #4F7D1C #1C7D7B
square
#4A1C7D #7D1C1E #4F7D1C #1C7D7B
split-complementary
#4A1C7D #7D7B1C #1E7D1C
monochromatic
#0F0619 #2C114B #4A1C7D #6827AF #863FD4

Accessibility & contrast

On white

11.98
#4A1C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4A1C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1C7D
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1C7D#FFFFFF#000000##FFFFFF
##4A1C7D1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#3E354B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4a1c7d;
/* rgb */ color: rgb(74, 28, 125);
/* oklch */ color: oklch(35.4% 0.152 300.1);
Tailwind
colors: {
  custom: {
    50: '#825da3',
    500: '#4a1c7d',
    950: '#000000',
  },
}
SCSS
$custom: #4a1c7d;
$custom-light: #825da3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1c7d",
  "rgb": {
    "r": 74,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 268.454,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.35386,
    "c": 0.1525,
    "h": 300.1
  },
  "luminance": 0.03767
}

Semantic roles & 50–950 ramp

primary
#4A1C7D
secondary
#7DB144
accent
#E64198
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A1C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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