#4A1F7F#4A1F7F

#4A1F7F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.151 H 298.9°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#4A1F7F
RGBrgb(74, 31, 127)
HSLhsl(267, 61%, 31%)
HSVhsv(267, 76%, 50%)
CMYKcmyk(41.7%, 75.6%, 0%, 50.2%)
CIE-LABlab(23.57, 40.47, -46.35)
CIE-LCHlch(23.57, 61.53, 311.13°)
OKLaboklab(35.92% 0.0731 -0.1324)
OKLCHoklch(35.92% 0.151 298.9)
XYZxyz(7.1438, 3.9680, 20.4641)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1F7F #547F1F
analogous
#1F247F #4A1F7F #7A1F7F
triadic
#4A1F7F #7F4A1F #1F7F4A
tetradic
#4A1F7F #7F1F24 #547F1F #1F7F7A
square
#4A1F7F #7F1F24 #547F1F #1F7F7A
split-complementary
#4A1F7F #7F7A1F #247F1F
monochromatic
#11071D #2D134E #4A1F7F #672BB0 #8546D2

Accessibility & contrast

On white

11.71
#4A1F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4A1F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1F7F
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1F7F#FFFFFF#000000##FFFFFF
##4A1F7F1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.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: #4a1f7f;
/* rgb */ color: rgb(74, 31, 127);
/* oklch */ color: oklch(35.9% 0.151 298.9);
Tailwind
colors: {
  custom: {
    50: '#825fa5',
    500: '#4a1f7f',
    950: '#000000',
  },
}
SCSS
$custom: #4a1f7f;
$custom-light: #825fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1f7f",
  "rgb": {
    "r": 74,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 266.875,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35919,
    "c": 0.15125,
    "h": 298.9
  },
  "luminance": 0.03968
}

Semantic roles & 50–950 ramp

primary
#4A1F7F
secondary
#82B248
accent
#E4449C
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A1F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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