#4E2F7E#4E2F7E

#4E2F7E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.6% C 0.128 H 298.2°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#4E2F7E
RGBrgb(78, 47, 126)
HSLhsl(264, 46%, 34%)
HSVhsv(264, 63%, 49%)
CMYKcmyk(38.1%, 62.7%, 0%, 50.6%)
CIE-LABlab(27.18, 32.29, -39.83)
CIE-LCHlch(27.18, 51.27, 309.03°)
OKLaboklab(38.61% 0.0608 -0.1132)
OKLCHoklch(38.61% 0.128 298.2)
XYZxyz(7.9234, 5.1590, 20.3130)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F7E #5F7E2F
analogous
#2F387E #4E2F7E #762F7E
triadic
#4E2F7E #7E4E2F #2F7E4E
tetradic
#4E2F7E #7E2F38 #5F7E2F #2F7E76
square
#4E2F7E #7E2F38 #5F7E2F #2F7E76
split-complementary
#4E2F7E #7E762F #387E2F
monochromatic
#170E25 #321E51 #4E2F7E #6A40AB #8963C5

Accessibility & contrast

On white

10.34
#4E2F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4E2F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2F7E
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F7E#FFFFFF#000000##FFFFFF
##4E2F7E1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2f7e;
/* rgb */ color: rgb(78, 47, 126);
/* oklch */ color: oklch(38.6% 0.128 298.2);
Tailwind
colors: {
  custom: {
    50: '#8369a4',
    500: '#4e2f7e',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f7e;
$custom-light: #8369a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f7e",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 263.544,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38605,
    "c": 0.12845,
    "h": 298.2
  },
  "luminance": 0.05159
}

Semantic roles & 50–950 ramp

primary
#4E2F7E
secondary
#8DAC5D
accent
#D552A2
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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