#4E2B7F#4E2B7F

#4E2B7F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.1% C 0.136 H 299.0°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#4E2B7F
RGBrgb(78, 43, 127)
HSLhsl(265, 49%, 33%)
HSVhsv(265, 66%, 50%)
CMYKcmyk(38.6%, 66.1%, 0%, 50.2%)
CIE-LABlab(26.39, 34.90, -41.74)
CIE-LCHlch(26.39, 54.41, 309.90°)
OKLaboklab(38.05% 0.0657 -0.1188)
OKLCHoklch(38.05% 0.136 299)
XYZxyz(7.8356, 4.8797, 20.6036)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2B7F #5C7F2B
analogous
#2B327F #4E2B7F #782B7F
triadic
#4E2B7F #7F4E2B #2B7F4E
tetradic
#4E2B7F #7F2B32 #5C7F2B #2B7F78
square
#4E2B7F #7F2B32 #5C7F2B #2B7F78
split-complementary
#4E2B7F #7F782B #327F2B
monochromatic
#160C24 #321C51 #4E2B7F #6A3AAD #895CC8

Accessibility & contrast

On white

10.63
#4E2B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4E2B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2B7F
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2B7F#FFFFFF#000000##FFFFFF
##4E2B7F1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#013E7D
Tritanopia (blue-blind)
#433E51
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2b7f;
/* rgb */ color: rgb(78, 43, 127);
/* oklch */ color: oklch(38.1% 0.136 299.0);
Tailwind
colors: {
  custom: {
    50: '#8466a5',
    500: '#4e2b7f',
    950: '#000000',
  },
}
SCSS
$custom: #4e2b7f;
$custom-light: #8466a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2b7f",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 127
  },
  "hsl": {
    "h": 265,
    "s": 49.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38052,
    "c": 0.13575,
    "h": 299
  },
  "luminance": 0.0488
}

Semantic roles & 50–950 ramp

primary
#4E2B7F
secondary
#8AAE58
accent
#D94F9F
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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