#4A1F95#4A1F95

#4A1F95 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.176 H 292.4°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#4A1F95
RGBrgb(74, 31, 149)
HSLhsl(262, 66%, 35%)
HSVhsv(262, 79%, 58%)
CMYKcmyk(50.3%, 79.2%, 0%, 41.6%)
CIE-LABlab(25.58, 46.43, -56.78)
CIE-LCHlch(25.58, 73.35, 309.28°)
OKLaboklab(37.95% 0.0671 -0.163)
OKLCHoklch(37.95% 0.176 292.4)
XYZxyz(8.7373, 4.6054, 28.8565)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1F95 #6A951F
analogous
#1F2F95 #4A1F95 #851F95
triadic
#4A1F95 #954A1F #1F954A
tetradic
#4A1F95 #951F2F #6A951F #1F9585
square
#4A1F95 #951F2F #6A951F #1F9585
split-complementary
#4A1F95 #95851F #2F951F
monochromatic
#180A30 #311462 #4A1F95 #632AC8 #8553DB

Accessibility & contrast

On white

10.93
#4A1F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4A1F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1F95
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1F95#FFFFFF#000000##FFFFFF
##4A1F951.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E98
Deuteranopia (green-blind)
#003A93
Tritanopia (blue-blind)
#31405A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4a1f95;
/* rgb */ color: rgb(74, 31, 149);
/* oklch */ color: oklch(38.0% 0.176 292.4);
Tailwind
colors: {
  custom: {
    50: '#8560b5',
    500: '#4a1f95',
    950: '#000000',
  },
}
SCSS
$custom: #4a1f95;
$custom-light: #8560b5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1f95",
  "rgb": {
    "r": 74,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 261.864,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37952,
    "c": 0.1763,
    "h": 292.4
  },
  "luminance": 0.04606
}

Semantic roles & 50–950 ramp

primary
#4A1F95
secondary
#97BF51
accent
#E93FAB
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4A1F95

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

Preview Lab → · Contrast checker → · Palette generator →

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