#4B1874#4B1874

#4B1874 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.147 H 304.8°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#4B1874
RGBrgb(75, 24, 116)
HSLhsl(273, 66%, 27%)
HSVhsv(273, 79%, 45%)
CMYKcmyk(35.3%, 79.3%, 0%, 54.5%)
CIE-LABlab(21.62, 41.06, -42.50)
CIE-LCHlch(21.62, 59.10, 314.01°)
OKLaboklab(34.28% 0.0841 -0.121)
OKLCHoklch(34.28% 0.147 304.8)
XYZxyz(6.3800, 3.4101, 16.8417)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1874 #417418
analogous
#1D1874 #4B1874 #74186F
triadic
#4B1874 #744B18 #18744B
tetradic
#4B1874 #741D18 #417418 #186F74
square
#4B1874 #741D18 #417418 #186F74
split-complementary
#4B1874 #6F7418 #18741D
monochromatic
#100519 #2A0E41 #4B1874 #6C22A7 #8C32D5

Accessibility & contrast

On white

12.49
#4B1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4B1874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1874
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1874#FFFFFF#000000##FFFFFF
##4B18741.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#003472
Tritanopia (blue-blind)
#432F45
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4b1874;
/* rgb */ color: rgb(75, 24, 116);
/* oklch */ color: oklch(34.3% 0.147 304.8);
Tailwind
colors: {
  custom: {
    50: '#825b9d',
    500: '#4b1874',
    950: '#000000',
  },
}
SCSS
$custom: #4b1874;
$custom-light: #825b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1874",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 273.261,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34281,
    "c": 0.1474,
    "h": 304.8
  },
  "luminance": 0.0341
}

Semantic roles & 50–950 ramp

primary
#4B1874
secondary
#6EA93F
accent
#E93F8B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B1874

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

Preview Lab → · Contrast checker → · Palette generator →

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