#4E256D#4E256D

#4E256D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.123 H 307.5°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#4E256D
RGBrgb(78, 37, 109)
HSLhsl(274, 49%, 29%)
HSVhsv(274, 66%, 43%)
CMYKcmyk(28.4%, 66.1%, 0%, 57.3%)
CIE-LABlab(23.83, 33.47, -34.40)
CIE-LCHlch(23.83, 47.99, 314.21°)
OKLaboklab(35.78% 0.0747 -0.0972)
OKLCHoklch(35.78% 0.123 307.5)
XYZxyz(6.5632, 4.0470, 14.9004)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E256D #446D25
analogous
#2A256D #4E256D #6D2568
triadic
#4E256D #6D4E25 #256D4E
tetradic
#4E256D #6D2A25 #446D25 #25686D
square
#4E256D #6D2A25 #446D25 #25686D
split-complementary
#4E256D #686D25 #256D2A
monochromatic
#100817 #2D153F #4E256D #6F359B #8E4BC2

Accessibility & contrast

On white

11.61
#4E256D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4E256D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E256D
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E256D#FFFFFF#000000##FFFFFF
##4E256D1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00376F
Deuteranopia (green-blind)
#18396B
Tritanopia (blue-blind)
#493445
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e256d;
/* rgb */ color: rgb(78, 37, 109);
/* oklch */ color: oklch(35.8% 0.123 307.5);
Tailwind
colors: {
  custom: {
    50: '#826297',
    500: '#4e256d',
    950: '#000000',
  },
}
SCSS
$custom: #4e256d;
$custom-light: #826297;
$custom-dark: #000000;
JSON
{
  "hex": "#4e256d",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 109
  },
  "hsl": {
    "h": 274.167,
    "s": 49.315,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35779,
    "c": 0.12257,
    "h": 307.5
  },
  "luminance": 0.04047
}

Semantic roles & 50–950 ramp

primary
#4E256D
secondary
#71A04E
accent
#D94F8A
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4E256D

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

Preview Lab → · Contrast checker → · Palette generator →

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