#4D1870#4D1870

#4D1870 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.144 H 307.8°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#4D1870
RGBrgb(77, 24, 112)
HSLhsl(276, 65%, 27%)
HSVhsv(276, 79%, 44%)
CMYKcmyk(31.2%, 78.6%, 0%, 56.1%)
CIE-LABlab(21.58, 40.47, -39.97)
CIE-LCHlch(21.58, 56.88, 315.36°)
OKLaboklab(34.22% 0.0881 -0.1135)
OKLCHoklch(34.22% 0.144 307.8)
XYZxyz(6.3112, 3.4010, 15.6501)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1870 #3B7018
analogous
#211870 #4D1870 #701867
triadic
#4D1870 #704D18 #18704D
tetradic
#4D1870 #702118 #3B7018 #186770
square
#4D1870 #702118 #3B7018 #186770
split-complementary
#4D1870 #677018 #187021
monochromatic
#110519 #2A0D3E #4D1870 #7023A2 #9230D3

Accessibility & contrast

On white

12.50
#4D1870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4D1870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1870
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1870#FFFFFF#000000##FFFFFF
##4D18701.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003272
Deuteranopia (green-blind)
#00346E
Tritanopia (blue-blind)
#472D43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d1870;
/* rgb */ color: rgb(77, 24, 112);
/* oklch */ color: oklch(34.2% 0.144 307.8);
Tailwind
colors: {
  custom: {
    50: '#835b9a',
    500: '#4d1870',
    950: '#000000',
  },
}
SCSS
$custom: #4d1870;
$custom-light: #835b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1870",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 276.136,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34217,
    "c": 0.14366,
    "h": 307.8
  },
  "luminance": 0.03401
}

Semantic roles & 50–950 ramp

primary
#4D1870
secondary
#67A53E
accent
#E84083
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1870

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

Preview Lab → · Contrast checker → · Palette generator →

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