#4B1768#4B1768

#4B1768 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.136 H 310.2°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#4B1768
RGBrgb(75, 23, 104)
HSLhsl(279, 64%, 25%)
HSVhsv(279, 78%, 41%)
CMYKcmyk(27.9%, 77.9%, 0%, 59.2%)
CIE-LABlab(20.47, 38.57, -36.58)
CIE-LCHlch(20.47, 53.16, 316.52°)
OKLaboklab(33.16% 0.0877 -0.1036)
OKLCHoklch(33.16% 0.136 310.2)
XYZxyz(5.7062, 3.1083, 13.3934)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1768 #346817
analogous
#231768 #4B1768 #68175C
triadic
#4B1768 #684B17 #17684B
tetradic
#4B1768 #682317 #346817 #175C68
square
#4B1768 #682317 #346817 #175C68
split-complementary
#4B1768 #5C6817 #176823
monochromatic
#120619 #270C36 #4B1768 #6F229A #932DCC

Accessibility & contrast

On white

12.95
#4B1768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4B1768 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1768
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1768#FFFFFF#000000##FFFFFF
##4B17681.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b1768;
/* rgb */ color: rgb(75, 23, 104);
/* oklch */ color: oklch(33.2% 0.136 310.2);
Tailwind
colors: {
  custom: {
    50: '#815a94',
    500: '#4b1768',
    950: '#000000',
  },
}
SCSS
$custom: #4b1768;
$custom-light: #815a94;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1768",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 278.519,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.33164,
    "c": 0.13577,
    "h": 310.2
  },
  "luminance": 0.03108
}

Semantic roles & 50–950 ramp

primary
#4B1768
secondary
#609E3D
accent
#E7417C
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4B1768

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

Preview Lab → · Contrast checker → · Palette generator →

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