#4E286B#4E286B

#4E286B is a dark, moderate violet. Relative luminance 0.042; OKLCH L 36.1% C 0.115 H 307.8°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#4E286B
RGBrgb(78, 40, 107)
HSLhsl(274, 46%, 29%)
HSVhsv(274, 63%, 42%)
CMYKcmyk(27.1%, 62.6%, 0%, 58%)
CIE-LABlab(24.32, 31.25, -32.32)
CIE-LCHlch(24.32, 44.95, 314.04°)
OKLaboklab(36.09% 0.0706 -0.0911)
OKLCHoklch(36.09% 0.115 307.8)
XYZxyz(6.5540, 4.1989, 14.3723)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E286B #456B28
analogous
#2D286B #4E286B #6B2867
triadic
#4E286B #6B4E28 #286B4E
tetradic
#4E286B #6B2D28 #456B28 #28676B
square
#4E286B #6B2D28 #456B28 #28676B
split-complementary
#4E286B #676B28 #286B2D
monochromatic
#100816 #2E173E #4E286B #6E3998 #8E50BE

Accessibility & contrast

On white

11.41
#4E286B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4E286B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E286B
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E286B#FFFFFF#000000##FFFFFF
##4E286B1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C386D
Deuteranopia (green-blind)
#1E3A69
Tritanopia (blue-blind)
#4A3545
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e286b;
/* rgb */ color: rgb(78, 40, 107);
/* oklch */ color: oklch(36.1% 0.115 307.8);
Tailwind
colors: {
  custom: {
    50: '#826496',
    500: '#4e286b',
    950: '#000000',
  },
}
SCSS
$custom: #4e286b;
$custom-light: #826496;
$custom-dark: #000000;
JSON
{
  "hex": "#4e286b",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 107
  },
  "hsl": {
    "h": 274.03,
    "s": 45.578,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36092,
    "c": 0.11528,
    "h": 307.8
  },
  "luminance": 0.04199
}

Semantic roles & 50–950 ramp

primary
#4E286B
secondary
#729D51
accent
#D5538B
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050D
muted
#7C7A7E

Preview Lab

Preview with #4E286B

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

Preview Lab → · Contrast checker → · Palette generator →

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