#4B1981#4B1981

#4B1981 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.160 H 299.8°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#4B1981
RGBrgb(75, 25, 129)
HSLhsl(269, 68%, 30%)
HSVhsv(269, 81%, 51%)
CMYKcmyk(41.9%, 80.6%, 0%, 49.4%)
CIE-LABlab(22.92, 43.92, -48.66)
CIE-LCHlch(22.92, 65.55, 312.07°)
OKLaboklab(35.55% 0.0797 -0.1391)
OKLCHoklch(35.55% 0.16 299.8)
XYZxyz(7.2107, 3.7760, 21.1136)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1981 #4F8119
analogous
#191B81 #4B1981 #7F1981
triadic
#4B1981 #814B19 #19814B
tetradic
#4B1981 #81191B #4F8119 #19817F
square
#4B1981 #81191B #4F8119 #19817F
split-complementary
#4B1981 #817F19 #1B8119
monochromatic
#0F051A #2D0F4E #4B1981 #6923B4 #873BD9

Accessibility & contrast

On white

11.96
#4B1981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4B1981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1981
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1981#FFFFFF#000000##FFFFFF
##4B19811.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00367F
Tritanopia (blue-blind)
#3E354D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4b1981;
/* rgb */ color: rgb(75, 25, 129);
/* oklch */ color: oklch(35.5% 0.160 299.8);
Tailwind
colors: {
  custom: {
    50: '#835ca6',
    500: '#4b1981',
    950: '#000000',
  },
}
SCSS
$custom: #4b1981;
$custom-light: #835ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1981",
  "rgb": {
    "r": 75,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 268.846,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.35549,
    "c": 0.16033,
    "h": 299.8
  },
  "luminance": 0.03776
}

Semantic roles & 50–950 ramp

primary
#4B1981
secondary
#7DB541
accent
#EA3D97
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B1981

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

Preview Lab → · Contrast checker → · Palette generator →

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