#4E2E7F#4E2E7F

#4E2E7F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.5% C 0.131 H 298.2°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#4E2E7F
RGBrgb(78, 46, 127)
HSLhsl(264, 47%, 34%)
HSVhsv(264, 64%, 50%)
CMYKcmyk(38.6%, 63.8%, 0%, 50.2%)
CIE-LABlab(27.03, 33.16, -40.69)
CIE-LCHlch(27.03, 52.49, 309.18°)
OKLaboklab(38.52% 0.062 -0.1157)
OKLCHoklch(38.52% 0.131 298.2)
XYZxyz(7.9487, 5.1059, 20.6413)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2E7F #5F7F2E
analogous
#2E377F #4E2E7F #772E7F
triadic
#4E2E7F #7F4E2E #2E7F4E
tetradic
#4E2E7F #7F2E37 #5F7F2E #2E7F77
square
#4E2E7F #7F2E37 #5F7F2E #2E7F77
split-complementary
#4E2E7F #7F772E #377F2E
monochromatic
#170D25 #321E52 #4E2E7F #6A3EAC #8961C6

Accessibility & contrast

On white

10.39
#4E2E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4E2E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2E7F
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2E7F#FFFFFF#000000##FFFFFF
##4E2E7F1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#0A3F7D
Tritanopia (blue-blind)
#434052
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2e7f;
/* rgb */ color: rgb(78, 46, 127);
/* oklch */ color: oklch(38.5% 0.131 298.2);
Tailwind
colors: {
  custom: {
    50: '#8368a5',
    500: '#4e2e7f',
    950: '#000000',
  },
}
SCSS
$custom: #4e2e7f;
$custom-light: #8368a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2e7f",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 127
  },
  "hsl": {
    "h": 263.704,
    "s": 46.821,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3852,
    "c": 0.13128,
    "h": 298.2
  },
  "luminance": 0.05106
}

Semantic roles & 50–950 ramp

primary
#4E2E7F
secondary
#8DAD5C
accent
#D651A2
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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