#4E2F7D#4E2F7D

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

Color values

HEX#4E2F7D
RGBrgb(78, 47, 125)
HSLhsl(264, 45%, 34%)
HSVhsv(264, 62%, 49%)
CMYKcmyk(37.6%, 62.4%, 0%, 51%)
CIE-LABlab(27.11, 32.01, -39.31)
CIE-LCHlch(27.11, 50.69, 309.15°)
OKLaboklab(38.53% 0.0608 -0.1117)
OKLCHoklch(38.53% 0.127 298.6)
XYZxyz(7.8592, 5.1333, 19.9748)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F7D #5E7D2F
analogous
#2F377D #4E2F7D #752F7D
triadic
#4E2F7D #7D4E2F #2F7D4E
tetradic
#4E2F7D #7D2F37 #5E7D2F #2F7D75
square
#4E2F7D #7D2F37 #5E7D2F #2F7D75
split-complementary
#4E2F7D #7D752F #377D2F
monochromatic
#160E24 #321E51 #4E2F7D #6A40A9 #8962C4

Accessibility & contrast

On white

10.36
#4E2F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2F7D
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F7D#FFFFFF#000000##FFFFFF
##4E2F7D1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#113F7B
Tritanopia (blue-blind)
#434051
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2f7d;
/* rgb */ color: rgb(78, 47, 125);
/* oklch */ color: oklch(38.5% 0.127 298.6);
Tailwind
colors: {
  custom: {
    50: '#8369a3',
    500: '#4e2f7d',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f7d;
$custom-light: #8369a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f7d",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 263.846,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3853,
    "c": 0.12714,
    "h": 298.6
  },
  "luminance": 0.05133
}

Semantic roles & 50–950 ramp

primary
#4E2F7D
secondary
#8CAB5D
accent
#D553A1
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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