#4E2A85#4E2A85

#4E2A85 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.4% C 0.145 H 297.2°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#4E2A85
RGBrgb(78, 42, 133)
HSLhsl(264, 52%, 34%)
HSVhsv(264, 68%, 52%)
CMYKcmyk(41.4%, 68.4%, 0%, 47.8%)
CIE-LABlab(26.65, 37.14, -45.09)
CIE-LCHlch(26.65, 58.41, 309.48°)
OKLaboklab(38.38% 0.0662 -0.1286)
OKLCHoklch(38.38% 0.145 297.2)
XYZxyz(8.2024, 4.9689, 22.7127)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A85 #61852A
analogous
#2A3485 #4E2A85 #7C2A85
triadic
#4E2A85 #854E2A #2A854E
tetradic
#4E2A85 #852A34 #61852A #2A857C
square
#4E2A85 #852A34 #61852A #2A857C
split-complementary
#4E2A85 #857C2A #34852A
monochromatic
#170D28 #331B56 #4E2A85 #6939B4 #895DCC

Accessibility & contrast

On white

10.53
#4E2A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4E2A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A85
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A85#FFFFFF#000000##FFFFFF
##4E2A851.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F88
Deuteranopia (green-blind)
#003E83
Tritanopia (blue-blind)
#403F54
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2a85;
/* rgb */ color: rgb(78, 42, 133);
/* oklch */ color: oklch(38.4% 0.145 297.2);
Tailwind
colors: {
  custom: {
    50: '#8466a9',
    500: '#4e2a85',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a85;
$custom-light: #8466a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a85",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 133
  },
  "hsl": {
    "h": 263.736,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38384,
    "c": 0.14467,
    "h": 297.2
  },
  "luminance": 0.04969
}

Semantic roles & 50–950 ramp

primary
#4E2A85
secondary
#8FB259
accent
#DB4CA3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2A85

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

Preview Lab → · Contrast checker → · Palette generator →

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