#4E258C#4E258C

#4E258C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.160 H 296.2°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#4E258C
RGBrgb(78, 37, 140)
HSLhsl(264, 58%, 35%)
HSVhsv(264, 74%, 55%)
CMYKcmyk(44.3%, 73.6%, 0%, 45.1%)
CIE-LABlab(26.26, 41.74, -50.07)
CIE-LCHlch(26.26, 65.19, 309.82°)
OKLaboklab(38.29% 0.0704 -0.1433)
OKLCHoklch(38.29% 0.16 296.2)
XYZxyz(8.5358, 4.8361, 25.2896)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E258C #638C25
analogous
#25308C #4E258C #81258C
triadic
#4E258C #8C4E25 #258C4E
tetradic
#4E258C #8C2530 #638C25 #258C81
square
#4E258C #8C2530 #638C25 #258C81
split-complementary
#4E258C #8C8125 #308C25
monochromatic
#180B2B #33185C #4E258C #6932BC #8958D3

Accessibility & contrast

On white

10.68
#4E258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E258C
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E258C#FFFFFF#000000##FFFFFF
##4E258C1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#003D8A
Tritanopia (blue-blind)
#3D3F56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e258c;
/* rgb */ color: rgb(78, 37, 140);
/* oklch */ color: oklch(38.3% 0.160 296.2);
Tailwind
colors: {
  custom: {
    50: '#8663ae',
    500: '#4e258c',
    950: '#000000',
  },
}
SCSS
$custom: #4e258c;
$custom-light: #8663ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e258c",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 263.883,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38291,
    "c": 0.15961,
    "h": 296.2
  },
  "luminance": 0.04836
}

Semantic roles & 50–950 ramp

primary
#4E258C
secondary
#90B855
accent
#E146A4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4E258C

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

Preview Lab → · Contrast checker → · Palette generator →

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