#4A1687#4A1687

#4A1687 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.169 H 297.6°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#4A1687
RGBrgb(74, 22, 135)
HSLhsl(268, 72%, 31%)
HSVhsv(268, 84%, 53%)
CMYKcmyk(45.2%, 83.7%, 0%, 47.1%)
CIE-LABlab(22.93, 46.51, -52.43)
CIE-LCHlch(22.93, 70.09, 311.58°)
OKLaboklab(35.7% 0.0785 -0.1502)
OKLCHoklch(35.7% 0.169 297.6)
XYZxyz(7.4830, 3.7788, 23.2521)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1687 #538716
analogous
#161A87 #4A1687 #821687
triadic
#4A1687 #874A16 #16874A
tetradic
#4A1687 #87161A #538716 #168782
square
#4A1687 #87161A #538716 #168782
split-complementary
#4A1687 #878216 #1A8716
monochromatic
#10051E #2D0D52 #4A1687 #671FBC #8539DF

Accessibility & contrast

On white

11.96
#4A1687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1687
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1687#FFFFFF#000000##FFFFFF
##4A16871.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a1687;
/* rgb */ color: rgb(74, 22, 135);
/* oklch */ color: oklch(35.7% 0.169 297.6);
Tailwind
colors: {
  custom: {
    50: '#835bab',
    500: '#4a1687',
    950: '#000000',
  },
}
SCSS
$custom: #4a1687;
$custom-light: #835bab;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1687",
  "rgb": {
    "r": 74,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 267.611,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35698,
    "c": 0.16948,
    "h": 297.6
  },
  "luminance": 0.03779
}

Semantic roles & 50–950 ramp

primary
#4A1687
secondary
#81BB3E
accent
#EF399B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4A1687

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

Preview Lab → · Contrast checker → · Palette generator →

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