#4B1984#4B1984

#4B1984 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.164 H 298.8°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#4B1984
RGBrgb(75, 25, 132)
HSLhsl(268, 68%, 31%)
HSVhsv(268, 81%, 52%)
CMYKcmyk(43.2%, 81.1%, 0%, 48.2%)
CIE-LABlab(23.19, 44.69, -50.10)
CIE-LCHlch(23.19, 67.14, 311.73°)
OKLaboklab(35.83% 0.0788 -0.1434)
OKLCHoklch(35.83% 0.164 298.8)
XYZxyz(7.4131, 3.8569, 22.1792)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1984 #528419
analogous
#191D84 #4B1984 #801984
triadic
#4B1984 #844B19 #19844B
tetradic
#4B1984 #84191D #528419 #198480
square
#4B1984 #84191D #528419 #198480
split-complementary
#4B1984 #848019 #1D8419
monochromatic
#11061D #2E0F51 #4B1984 #6823B7 #873DDA

Accessibility & contrast

On white

11.86
#4B1984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4B1984 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1984
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1984#FFFFFF#000000##FFFFFF
##4B19841.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003787
Deuteranopia (green-blind)
#003682
Tritanopia (blue-blind)
#3D374E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4b1984;
/* rgb */ color: rgb(75, 25, 132);
/* oklch */ color: oklch(35.8% 0.164 298.8);
Tailwind
colors: {
  custom: {
    50: '#845ca9',
    500: '#4b1984',
    950: '#000000',
  },
}
SCSS
$custom: #4b1984;
$custom-light: #845ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1984",
  "rgb": {
    "r": 75,
    "g": 25,
    "b": 132
  },
  "hsl": {
    "h": 268.037,
    "s": 68.153,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35826,
    "c": 0.16358,
    "h": 298.8
  },
  "luminance": 0.03857
}

Semantic roles & 50–950 ramp

primary
#4B1984
secondary
#80B841
accent
#EB3D9A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #4B1984

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

Preview Lab → · Contrast checker → · Palette generator →

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