#4E268B#4E268B

#4E268B is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.157 H 296.3°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#4E268B
RGBrgb(78, 38, 139)
HSLhsl(264, 57%, 35%)
HSVhsv(264, 73%, 55%)
CMYKcmyk(43.9%, 72.7%, 0%, 45.5%)
CIE-LABlab(26.36, 40.95, -49.29)
CIE-LCHlch(26.36, 64.09, 309.72°)
OKLaboklab(38.33% 0.0696 -0.141)
OKLCHoklch(38.33% 0.157 296.3)
XYZxyz(8.4940, 4.8698, 24.9135)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E268B #638B26
analogous
#26318B #4E268B #80268B
triadic
#4E268B #8B4E26 #268B4E
tetradic
#4E268B #8B2631 #638B26 #268B80
square
#4E268B #8B2631 #638B26 #268B80
split-complementary
#4E268B #8B8026 #318B26
monochromatic
#180C2B #33195B #4E268B #6933BB #895AD2

Accessibility & contrast

On white

10.64
#4E268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4E268B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E268B
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E268B#FFFFFF#000000##FFFFFF
##4E268B1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#3E3F56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e268b;
/* rgb */ color: rgb(78, 38, 139);
/* oklch */ color: oklch(38.3% 0.157 296.3);
Tailwind
colors: {
  custom: {
    50: '#8564ae',
    500: '#4e268b',
    950: '#000000',
  },
}
SCSS
$custom: #4e268b;
$custom-light: #8564ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e268b",
  "rgb": {
    "r": 78,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 263.762,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38334,
    "c": 0.1572,
    "h": 296.3
  },
  "luminance": 0.0487
}

Semantic roles & 50–950 ramp

primary
#4E268B
secondary
#90B756
accent
#E047A4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4E268B

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

Preview Lab → · Contrast checker → · Palette generator →

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