#4E256B#4E256B

#4E256B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.6% C 0.120 H 308.5°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#4E256B
RGBrgb(78, 37, 107)
HSLhsl(275, 49%, 28%)
HSVhsv(275, 65%, 42%)
CMYKcmyk(27.1%, 65.4%, 0%, 58%)
CIE-LABlab(23.69, 32.95, -33.33)
CIE-LCHlch(23.69, 46.87, 314.67°)
OKLaboklab(35.63% 0.0748 -0.0941)
OKLCHoklch(35.63% 0.12 308.5)
XYZxyz(6.4568, 4.0045, 14.3399)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E256B #426B25
analogous
#2B256B #4E256B #6B2565
triadic
#4E256B #6B4E25 #256B4E
tetradic
#4E256B #6B2B25 #426B25 #25656B
square
#4E256B #6B2B25 #426B25 #25656B
split-complementary
#4E256B #656B25 #256B2B
monochromatic
#110817 #2D153E #4E256B #6F3598 #8F4AC0

Accessibility & contrast

On white

11.66
#4E256B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4E256B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E256B
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E256B#FFFFFF#000000##FFFFFF
##4E256B1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03376D
Deuteranopia (green-blind)
#1A3969
Tritanopia (blue-blind)
#4A3344
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e256b;
/* rgb */ color: rgb(78, 37, 107);
/* oklch */ color: oklch(35.6% 0.120 308.5);
Tailwind
colors: {
  custom: {
    50: '#826296',
    500: '#4e256b',
    950: '#000000',
  },
}
SCSS
$custom: #4e256b;
$custom-light: #826296;
$custom-dark: #000000;
JSON
{
  "hex": "#4e256b",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 107
  },
  "hsl": {
    "h": 275.143,
    "s": 48.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35633,
    "c": 0.12016,
    "h": 308.5
  },
  "luminance": 0.04004
}

Semantic roles & 50–950 ramp

primary
#4E256B
secondary
#6F9E4E
accent
#D85088
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4E256B

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

Preview Lab → · Contrast checker → · Palette generator →

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