#4B2687#4B2687

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

Color values

HEX#4B2687
RGBrgb(75, 38, 135)
HSLhsl(263, 56%, 34%)
HSVhsv(263, 72%, 53%)
CMYKcmyk(44.4%, 71.9%, 0%, 47.1%)
CIE-LABlab(25.66, 39.26, -47.96)
CIE-LCHlch(25.66, 61.98, 309.31°)
OKLaboklab(37.65% 0.0658 -0.1372)
OKLCHoklch(37.65% 0.152 295.6)
XYZxyz(7.9668, 4.6312, 23.3911)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2687 #628726
analogous
#263287 #4B2687 #7C2687
triadic
#4B2687 #874B26 #26874B
tetradic
#4B2687 #872632 #628726 #26877C
square
#4B2687 #872632 #628726 #26877C
split-complementary
#4B2687 #877C26 #328726
monochromatic
#160B27 #301957 #4B2687 #6633B7 #8558D0

Accessibility & contrast

On white

10.90
#4B2687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4B2687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2687
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2687#FFFFFF#000000##FFFFFF
##4B26871.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#3B3E53
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4b2687;
/* rgb */ color: rgb(75, 38, 135);
/* oklch */ color: oklch(37.6% 0.152 295.6);
Tailwind
colors: {
  custom: {
    50: '#8363ab',
    500: '#4b2687',
    950: '#000000',
  },
}
SCSS
$custom: #4b2687;
$custom-light: #8363ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2687",
  "rgb": {
    "r": 75,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 262.887,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37645,
    "c": 0.15213,
    "h": 295.6
  },
  "luminance": 0.04631
}

Semantic roles & 50–950 ramp

primary
#4B2687
secondary
#90B554
accent
#DF48A6
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4B2687

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

Preview Lab → · Contrast checker → · Palette generator →

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