#4B1868#4B1868

#4B1868 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.135 H 310.1°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#4B1868
RGBrgb(75, 24, 104)
HSLhsl(278, 63%, 25%)
HSVhsv(278, 77%, 41%)
CMYKcmyk(27.9%, 76.9%, 0%, 59.2%)
CIE-LABlab(20.63, 38.13, -36.33)
CIE-LCHlch(20.63, 52.66, 316.38°)
OKLaboklab(33.28% 0.0867 -0.1029)
OKLCHoklch(33.28% 0.135 310.1)
XYZxyz(5.7265, 3.1487, 13.4001)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1868 #356818
analogous
#231868 #4B1868 #68185D
triadic
#4B1868 #684B18 #18684B
tetradic
#4B1868 #682318 #356818 #185D68
square
#4B1868 #682318 #356818 #185D68
split-complementary
#4B1868 #5D6818 #186823
monochromatic
#120619 #270D36 #4B1868 #6F239A #932FCB

Accessibility & contrast

On white

12.89
#4B1868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4B1868 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1868
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1868#FFFFFF#000000##FFFFFF
##4B18681.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6A
Deuteranopia (green-blind)
#073266
Tritanopia (blue-blind)
#472A3E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4b1868;
/* rgb */ color: rgb(75, 24, 104);
/* oklch */ color: oklch(33.3% 0.135 310.1);
Tailwind
colors: {
  custom: {
    50: '#815a94',
    500: '#4b1868',
    950: '#000000',
  },
}
SCSS
$custom: #4b1868;
$custom-light: #815a94;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1868",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 278.25,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.33275,
    "c": 0.13452,
    "h": 310.1
  },
  "luminance": 0.03149
}

Semantic roles & 50–950 ramp

primary
#4B1868
secondary
#619E3E
accent
#E6427D
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4B1868

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

Preview Lab → · Contrast checker → · Palette generator →

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