#4E126B#4E126B

#4E126B is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.4% C 0.145 H 311.4°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#4E126B
RGBrgb(78, 18, 107)
HSLhsl(280, 71%, 25%)
HSVhsv(280, 83%, 42%)
CMYKcmyk(27.1%, 83.2%, 0%, 58%)
CIE-LABlab(20.49, 41.91, -38.48)
CIE-LCHlch(20.49, 56.90, 317.44°)
OKLaboklab(33.36% 0.0963 -0.1091)
OKLCHoklch(33.36% 0.146 311.4)
XYZxyz(6.0115, 3.1140, 14.1915)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E126B #2F6B12
analogous
#21126B #4E126B #6B125C
triadic
#4E126B #6B4E12 #126B4E
tetradic
#4E126B #6B2112 #2F6B12 #125C6B
square
#4E126B #6B2112 #2F6B12 #125C6B
split-complementary
#4E126B #5C6B12 #126B21
monochromatic
#13041A #280937 #4E126B #741B9F #9A24D4

Accessibility & contrast

On white

12.94
#4E126B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4E126B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E126B
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E126B#FFFFFF#000000##FFFFFF
##4E126B1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#003269
Tritanopia (blue-blind)
#4A283F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4e126b;
/* rgb */ color: rgb(78, 18, 107);
/* oklch */ color: oklch(33.4% 0.145 311.4);
Tailwind
colors: {
  custom: {
    50: '#835896',
    500: '#4e126b',
    950: '#000000',
  },
}
SCSS
$custom: #4e126b;
$custom-light: #835896;
$custom-dark: #000000;
JSON
{
  "hex": "#4e126b",
  "rgb": {
    "r": 78,
    "g": 18,
    "b": 107
  },
  "hsl": {
    "h": 280.449,
    "s": 71.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.33355,
    "c": 0.1455,
    "h": 311.4
  },
  "luminance": 0.03114
}

Semantic roles & 50–950 ramp

primary
#4E126B
secondary
#5AA236
accent
#EE3A75
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E126B

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

Preview Lab → · Contrast checker → · Palette generator →

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