#4B1687#4B1687

#4B1687 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.170 H 298.2°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#4B1687
RGBrgb(75, 22, 135)
HSLhsl(268, 72%, 31%)
HSVhsv(268, 84%, 53%)
CMYKcmyk(44.4%, 83.7%, 0%, 47.1%)
CIE-LABlab(23.06, 46.66, -52.20)
CIE-LCHlch(23.06, 70.01, 311.79°)
OKLaboklab(35.82% 0.0801 -0.1495)
OKLCHoklch(35.82% 0.17 298.2)
XYZxyz(7.5606, 3.8188, 23.2557)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1687 #528716
analogous
#161987 #4B1687 #831687
triadic
#4B1687 #874B16 #16874B
tetradic
#4B1687 #871619 #528716 #168783
square
#4B1687 #871619 #528716 #168783
split-complementary
#4B1687 #878316 #198716
monochromatic
#11051E #2E0D52 #4B1687 #681FBC #8739DF

Accessibility & contrast

On white

11.91
#4B1687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B1687
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1687#FFFFFF#000000##FFFFFF
##4B16871.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#3B3750
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4b1687;
/* rgb */ color: rgb(75, 22, 135);
/* oklch */ color: oklch(35.8% 0.170 298.2);
Tailwind
colors: {
  custom: {
    50: '#845bab',
    500: '#4b1687',
    950: '#000000',
  },
}
SCSS
$custom: #4b1687;
$custom-light: #845bab;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1687",
  "rgb": {
    "r": 75,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 268.142,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35823,
    "c": 0.16961,
    "h": 298.2
  },
  "luminance": 0.03819
}

Semantic roles & 50–950 ramp

primary
#4B1687
secondary
#80BB3E
accent
#EF399A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4B1687

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

Preview Lab → · Contrast checker → · Palette generator →

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