#4E2F8A#4E2F8A

#4E2F8A is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.5% C 0.144 H 294.6°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#4E2F8A
RGBrgb(78, 47, 138)
HSLhsl(260, 49%, 36%)
HSVhsv(260, 66%, 54%)
CMYKcmyk(43.5%, 65.9%, 0%, 45.9%)
CIE-LABlab(28.08, 35.72, -45.87)
CIE-LCHlch(28.08, 58.14, 307.90°)
OKLaboklab(39.54% 0.0599 -0.1309)
OKLCHoklch(39.54% 0.144 294.6)
XYZxyz(8.7446, 5.4875, 24.6383)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F8A #6B8A2F
analogous
#2F3E8A #4E2F8A #7C2F8A
triadic
#4E2F8A #8A4E2F #2F8A4E
tetradic
#4E2F8A #8A2F3E #6B8A2F #2F8A7C
square
#4E2F8A #8A2F3E #6B8A2F #2F8A7C
split-complementary
#4E2F8A #8A7C2F #3E8A2F
monochromatic
#1A102F #341F5C #4E2F8A #683FB8 #8A68CC

Accessibility & contrast

On white

10.01
#4E2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4E2F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2F8A
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F8A#FFFFFF#000000##FFFFFF
##4E2F8A1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#3E4458
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e2f8a;
/* rgb */ color: rgb(78, 47, 138);
/* oklch */ color: oklch(39.5% 0.144 294.6);
Tailwind
colors: {
  custom: {
    50: '#8569ad',
    500: '#4e2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f8a;
$custom-light: #8569ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f8a",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 260.44,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39542,
    "c": 0.14399,
    "h": 294.6
  },
  "luminance": 0.05488
}

Semantic roles & 50–950 ramp

primary
#4E2F8A
secondary
#97B362
accent
#D94FAA
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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