#4E287F#4E287F

#4E287F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.6% C 0.140 H 299.7°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#4E287F
RGBrgb(78, 40, 127)
HSLhsl(266, 52%, 33%)
HSVhsv(266, 69%, 50%)
CMYKcmyk(38.6%, 68.5%, 0%, 50.2%)
CIE-LABlab(25.77, 36.58, -42.74)
CIE-LCHlch(25.77, 56.26, 310.56°)
OKLaboklab(37.61% 0.0693 -0.1217)
OKLCHoklch(37.61% 0.14 299.7)
XYZxyz(7.7305, 4.6695, 20.5686)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E287F #597F28
analogous
#282D7F #4E287F #79287F
triadic
#4E287F #7F4E28 #287F4E
tetradic
#4E287F #7F282D #597F28 #287F79
square
#4E287F #7F282D #597F28 #287F79
split-complementary
#4E287F #7F7928 #2D7F28
monochromatic
#150B22 #311950 #4E287F #6B37AE #8957CA

Accessibility & contrast

On white

10.86
#4E287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4E287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E287F
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E287F#FFFFFF#000000##FFFFFF
##4E287F1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#433C50
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e287f;
/* rgb */ color: rgb(78, 40, 127);
/* oklch */ color: oklch(37.6% 0.140 299.7);
Tailwind
colors: {
  custom: {
    50: '#8465a5',
    500: '#4e287f',
    950: '#000000',
  },
}
SCSS
$custom: #4e287f;
$custom-light: #8465a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e287f",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 266.207,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37607,
    "c": 0.14007,
    "h": 299.7
  },
  "luminance": 0.0467
}

Semantic roles & 50–950 ramp

primary
#4E287F
secondary
#87AF54
accent
#DC4C9D
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E287F

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

Preview Lab → · Contrast checker → · Palette generator →

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