#4A1F7D#4A1F7D

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

Color values

HEX#4A1F7D
RGBrgb(74, 31, 125)
HSLhsl(267, 60%, 31%)
HSVhsv(267, 75%, 49%)
CMYKcmyk(40.8%, 75.2%, 0%, 51%)
CIE-LABlab(23.39, 39.93, -45.36)
CIE-LCHlch(23.39, 60.43, 311.36°)
OKLaboklab(35.74% 0.0735 -0.1295)
OKLCHoklch(35.74% 0.149 299.6)
XYZxyz(7.0148, 3.9164, 19.7844)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1F7D #527D1F
analogous
#1F237D #4A1F7D #791F7D
triadic
#4A1F7D #7D4A1F #1F7D4A
tetradic
#4A1F7D #7D1F23 #527D1F #1F7D79
square
#4A1F7D #7D1F23 #527D1F #1F7D79
split-complementary
#4A1F7D #7D791F #237D1F
monochromatic
#10071B #2D134C #4A1F7D #672BAE #8545D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4A1F7D#FFFFFF#000000##FFFFFF
##4A1F7D1.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)
#003880
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#3E374C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4a1f7d;
/* rgb */ color: rgb(74, 31, 125);
/* oklch */ color: oklch(35.7% 0.149 299.6);
Tailwind
colors: {
  custom: {
    50: '#825fa3',
    500: '#4a1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #4a1f7d;
$custom-light: #825fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1f7d",
  "rgb": {
    "r": 74,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 267.447,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35744,
    "c": 0.14894,
    "h": 299.6
  },
  "luminance": 0.03916
}

Semantic roles & 50–950 ramp

primary
#4A1F7D
secondary
#80B048
accent
#E3449B
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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