#4E2F7F#4E2F7F

#4E2F7F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.7% C 0.130 H 297.9°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#4E2F7F
RGBrgb(78, 47, 127)
HSLhsl(263, 46%, 34%)
HSVhsv(263, 63%, 50%)
CMYKcmyk(38.6%, 63%, 0%, 50.2%)
CIE-LABlab(27.26, 32.57, -40.34)
CIE-LCHlch(27.26, 51.85, 308.92°)
OKLaboklab(38.68% 0.0607 -0.1147)
OKLCHoklch(38.68% 0.13 297.9)
XYZxyz(7.9882, 5.1849, 20.6545)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F7F #607F2F
analogous
#2F387F #4E2F7F #762F7F
triadic
#4E2F7F #7F4E2F #2F7F4E
tetradic
#4E2F7F #7F2F38 #607F2F #2F7F76
square
#4E2F7F #7F2F38 #607F2F #2F7F76
split-complementary
#4E2F7F #7F762F #387F2F
monochromatic
#170E26 #331E52 #4E2F7F #6940AC #8963C5

Accessibility & contrast

On white

10.31
#4E2F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4E2F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2F7F
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F7F#FFFFFF#000000##FFFFFF
##4E2F7F1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2f7f;
/* rgb */ color: rgb(78, 47, 127);
/* oklch */ color: oklch(38.7% 0.130 297.9);
Tailwind
colors: {
  custom: {
    50: '#8369a5',
    500: '#4e2f7f',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f7f;
$custom-light: #8369a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f7f",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 263.25,
    "s": 45.977,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38681,
    "c": 0.12975,
    "h": 297.9
  },
  "luminance": 0.05185
}

Semantic roles & 50–950 ramp

primary
#4E2F7F
secondary
#8EAC5E
accent
#D652A3
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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