#4E1875#4E1875

#4E1875 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.149 H 306.3°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#4E1875
RGBrgb(78, 24, 117)
HSLhsl(275, 66%, 28%)
HSVhsv(275, 79%, 46%)
CMYKcmyk(33.3%, 79.5%, 0%, 54.1%)
CIE-LABlab(22.15, 41.88, -42.26)
CIE-LCHlch(22.15, 59.50, 314.75°)
OKLaboklab(34.78% 0.0884 -0.1202)
OKLCHoklch(34.78% 0.149 306.3)
XYZxyz(6.6787, 3.5574, 17.1610)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1875 #3F7518
analogous
#201875 #4E1875 #75186D
triadic
#4E1875 #754E18 #18754E
tetradic
#4E1875 #752018 #3F7518 #186D75
square
#4E1875 #752018 #3F7518 #186D75
split-complementary
#4E1875 #6D7518 #187520
monochromatic
#110519 #2C0E42 #4E1875 #7022A8 #9132D5

Accessibility & contrast

On white

12.27
#4E1875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4E1875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1875
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1875#FFFFFF#000000##FFFFFF
##4E18751.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003378
Deuteranopia (green-blind)
#003573
Tritanopia (blue-blind)
#472F46
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1875;
/* rgb */ color: rgb(78, 24, 117);
/* oklch */ color: oklch(34.8% 0.149 306.3);
Tailwind
colors: {
  custom: {
    50: '#845b9d',
    500: '#4e1875',
    950: '#000000',
  },
}
SCSS
$custom: #4e1875;
$custom-light: #845b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1875",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 274.839,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34778,
    "c": 0.14922,
    "h": 306.3
  },
  "luminance": 0.03557
}

Semantic roles & 50–950 ramp

primary
#4E1875
secondary
#6CAA3F
accent
#E93F86
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1875

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

Preview Lab → · Contrast checker → · Palette generator →

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