#4A1B97#4A1B97

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

Color values

HEX#4A1B97
RGBrgb(74, 27, 151)
HSLhsl(263, 70%, 35%)
HSVhsv(263, 82%, 59%)
CMYKcmyk(51%, 82.1%, 0%, 40.8%)
CIE-LABlab(25.18, 48.70, -58.67)
CIE-LCHlch(25.18, 76.25, 309.70°)
OKLaboklab(37.73% 0.0694 -0.1685)
OKLCHoklch(37.73% 0.182 292.4)
XYZxyz(8.8003, 4.4738, 29.6720)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1B97 #68971B
analogous
#1B2A97 #4A1B97 #881B97
triadic
#4A1B97 #974A1B #1B974A
tetradic
#4A1B97 #971B2A #68971B #1B9788
square
#4A1B97 #971B2A #68971B #1B9788
split-complementary
#4A1B97 #97881B #2A971B
monochromatic
#17082F #311263 #4A1B97 #6324CB #854DDF

Accessibility & contrast

On white

11.08
#4A1B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4A1B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1B97
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1B97#FFFFFF#000000##FFFFFF
##4A1B971.0011.081.8911.08
#FFFFFF11.081.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#30405A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4a1b97;
/* rgb */ color: rgb(74, 27, 151);
/* oklch */ color: oklch(37.7% 0.182 292.4);
Tailwind
colors: {
  custom: {
    50: '#855eb7',
    500: '#4a1b97',
    950: '#000000',
  },
}
SCSS
$custom: #4a1b97;
$custom-light: #855eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1b97",
  "rgb": {
    "r": 74,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 262.742,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37734,
    "c": 0.18225,
    "h": 292.4
  },
  "luminance": 0.04474
}

Semantic roles & 50–950 ramp

primary
#4A1B97
secondary
#95C14C
accent
#EC3BA9
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4A1B97

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

Preview Lab → · Contrast checker → · Palette generator →

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