#4A1F92#4A1F92

#4A1F92 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.173 H 293.2°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#4A1F92
RGBrgb(74, 31, 146)
HSLhsl(262, 65%, 35%)
HSVhsv(262, 79%, 57%)
CMYKcmyk(49.3%, 78.8%, 0%, 42.7%)
CIE-LABlab(25.29, 45.62, -55.40)
CIE-LCHlch(25.29, 71.76, 309.47°)
OKLaboklab(37.67% 0.068 -0.159)
OKLCHoklch(37.67% 0.173 293.2)
XYZxyz(8.5009, 4.5109, 27.6113)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1F92 #67921F
analogous
#1F2D92 #4A1F92 #841F92
triadic
#4A1F92 #924A1F #1F924A
tetradic
#4A1F92 #921F2D #67921F #1F9284
square
#4A1F92 #921F2D #67921F #1F9284
split-complementary
#4A1F92 #92841F #2D921F
monochromatic
#170A2D #301460 #4A1F92 #642AC4 #8451DA

Accessibility & contrast

On white

11.04
#4A1F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4A1F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1F92
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1F92#FFFFFF#000000##FFFFFF
##4A1F921.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D95
Deuteranopia (green-blind)
#003A90
Tritanopia (blue-blind)
#333F58
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4a1f92;
/* rgb */ color: rgb(74, 31, 146);
/* oklch */ color: oklch(37.7% 0.173 293.2);
Tailwind
colors: {
  custom: {
    50: '#8460b3',
    500: '#4a1f92',
    950: '#000000',
  },
}
SCSS
$custom: #4a1f92;
$custom-light: #8460b3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1f92",
  "rgb": {
    "r": 74,
    "g": 31,
    "b": 146
  },
  "hsl": {
    "h": 262.435,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37665,
    "c": 0.17292,
    "h": 293.2
  },
  "luminance": 0.04511
}

Semantic roles & 50–950 ramp

primary
#4A1F92
secondary
#94BD50
accent
#E840A9
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4A1F92

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

Preview Lab → · Contrast checker → · Palette generator →

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