#4B137E#4B137E

#4B137E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.163 H 301.6°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#4B137E
RGBrgb(75, 19, 126)
HSLhsl(271, 74%, 28%)
HSVhsv(271, 85%, 49%)
CMYKcmyk(40.5%, 84.9%, 0%, 50.6%)
CIE-LABlab(21.83, 45.52, -48.55)
CIE-LCHlch(21.83, 66.55, 313.16°)
OKLaboklab(34.71% 0.0854 -0.1388)
OKLCHoklch(34.71% 0.163 301.6)
XYZxyz(6.8995, 3.4679, 20.0405)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B137E #467E13
analogous
#16137E #4B137E #7E137B
triadic
#4B137E #7E4B13 #137E4B
tetradic
#4B137E #7E1613 #467E13 #137B7E
square
#4B137E #7E1613 #467E13 #137B7E
split-complementary
#4B137E #7B7E13 #137E16
monochromatic
#10041B #2B0B49 #4B137E #6B1BB3 #8A2CDF

Accessibility & contrast

On white

12.40
#4B137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4B137E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B137E
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B137E#FFFFFF#000000##FFFFFF
##4B137E1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#40324A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4b137e;
/* rgb */ color: rgb(75, 19, 126);
/* oklch */ color: oklch(34.7% 0.163 301.6);
Tailwind
colors: {
  custom: {
    50: '#8359a4',
    500: '#4b137e',
    950: '#000000',
  },
}
SCSS
$custom: #4b137e;
$custom-light: #8359a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4b137e",
  "rgb": {
    "r": 75,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 271.402,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34706,
    "c": 0.16292,
    "h": 301.6
  },
  "luminance": 0.03468
}

Semantic roles & 50–950 ramp

primary
#4B137E
secondary
#74B439
accent
#F03790
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B137E

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

Preview Lab → · Contrast checker → · Palette generator →

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