#4E256F#4E256F

#4E256F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 35.9% C 0.125 H 306.6°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#4E256F
RGBrgb(78, 37, 111)
HSLhsl(273, 50%, 29%)
HSVhsv(273, 67%, 44%)
CMYKcmyk(29.7%, 66.7%, 0%, 56.5%)
CIE-LABlab(23.97, 33.98, -35.46)
CIE-LCHlch(23.97, 49.11, 313.78°)
OKLaboklab(35.93% 0.0746 -0.1003)
OKLCHoklch(35.93% 0.125 306.6)
XYZxyz(6.6721, 4.0906, 15.4739)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E256F #466F25
analogous
#29256F #4E256F #6F256B
triadic
#4E256F #6F4E25 #256F4E
tetradic
#4E256F #6F2925 #466F25 #256B6F
square
#4E256F #6F2925 #466F25 #256B6F
split-complementary
#4E256F #6B6F25 #256F29
monochromatic
#100817 #2E1641 #4E256F #6E349D #8E4BC3

Accessibility & contrast

On white

11.55
#4E256F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4E256F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E256F
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E256F#FFFFFF#000000##FFFFFF
##4E256F1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003871
Deuteranopia (green-blind)
#15396D
Tritanopia (blue-blind)
#493446
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e256f;
/* rgb */ color: rgb(78, 37, 111);
/* oklch */ color: oklch(35.9% 0.125 306.6);
Tailwind
colors: {
  custom: {
    50: '#826299',
    500: '#4e256f',
    950: '#000000',
  },
}
SCSS
$custom: #4e256f;
$custom-light: #826299;
$custom-dark: #000000;
JSON
{
  "hex": "#4e256f",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 111
  },
  "hsl": {
    "h": 273.243,
    "s": 50,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35928,
    "c": 0.12499,
    "h": 306.6
  },
  "luminance": 0.04091
}

Semantic roles & 50–950 ramp

primary
#4E256F
secondary
#73A24E
accent
#DA4E8C
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E256F

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

Preview Lab → · Contrast checker → · Palette generator →

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