#4E289B#4E289B

#4E289B is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.174 H 291.7°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#4E289B
RGBrgb(78, 40, 155)
HSLhsl(260, 59%, 38%)
HSVhsv(260, 74%, 61%)
CMYKcmyk(49.7%, 74.2%, 0%, 39.2%)
CIE-LABlab(28.12, 44.39, -56.27)
CIE-LCHlch(28.12, 71.67, 308.27°)
OKLaboklab(40.02% 0.0641 -0.1615)
OKLCHoklch(40.02% 0.174 291.7)
XYZxyz(9.8154, 5.5035, 31.5491)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E289B #759B28
analogous
#283B9B #4E289B #87289B
triadic
#4E289B #9B4E28 #289B4E
tetradic
#4E289B #9B283B #759B28 #289B87
square
#4E289B #9B283B #759B28 #289B87
split-complementary
#4E289B #9B8728 #3B9B28
monochromatic
#1D0F3A #361B6A #4E289B #6735CB #8B66D7

Accessibility & contrast

On white

10.00
#4E289B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4E289B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E289B
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E289B#FFFFFF#000000##FFFFFF
##4E289B1.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004099
Tritanopia (blue-blind)
#35475F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e289b;
/* rgb */ color: rgb(78, 40, 155);
/* oklch */ color: oklch(40.0% 0.174 291.7);
Tailwind
colors: {
  custom: {
    50: '#8766b9',
    500: '#4e289b',
    950: '#000000',
  },
}
SCSS
$custom: #4e289b;
$custom-light: #8766b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e289b",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 155
  },
  "hsl": {
    "h": 259.826,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40015,
    "c": 0.17374,
    "h": 291.7
  },
  "luminance": 0.05504
}

Semantic roles & 50–950 ramp

primary
#4E289B
secondary
#9FBD61
accent
#E246AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E289B

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

Preview Lab → · Contrast checker → · Palette generator →

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