#4A2687#4A2687

#4A2687 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.5% C 0.152 H 295.0°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#4A2687
RGBrgb(74, 38, 135)
HSLhsl(262, 56%, 34%)
HSVhsv(262, 72%, 53%)
CMYKcmyk(45.2%, 71.9%, 0%, 47.1%)
CIE-LABlab(25.54, 39.07, -48.16)
CIE-LCHlch(25.54, 62.02, 309.05°)
OKLaboklab(37.53% 0.0643 -0.1378)
OKLCHoklch(37.53% 0.152 295)
XYZxyz(7.8892, 4.5911, 23.3875)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2687 #638726
analogous
#263387 #4A2687 #7B2687
triadic
#4A2687 #874A26 #26874A
tetradic
#4A2687 #872633 #638726 #26877B
square
#4A2687 #872633 #638726 #26877B
split-complementary
#4A2687 #877B26 #338726
monochromatic
#160B27 #301957 #4A2687 #6433B7 #8458D0

Accessibility & contrast

On white

10.95
#4A2687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4A2687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2687
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2687#FFFFFF#000000##FFFFFF
##4A26871.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#393E53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4a2687;
/* rgb */ color: rgb(74, 38, 135);
/* oklch */ color: oklch(37.5% 0.152 295.0);
Tailwind
colors: {
  custom: {
    50: '#8263ab',
    500: '#4a2687',
    950: '#000000',
  },
}
SCSS
$custom: #4a2687;
$custom-light: #8263ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2687",
  "rgb": {
    "r": 74,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 262.268,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37532,
    "c": 0.15204,
    "h": 295
  },
  "luminance": 0.04591
}

Semantic roles & 50–950 ramp

primary
#4A2687
secondary
#91B554
accent
#DF48A7
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4A2687

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

Preview Lab → · Contrast checker → · Palette generator →

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