#4D286E#4D286E

#4D286E is a dark, moderate violet. Relative luminance 0.042; OKLCH L 36.2% C 0.119 H 305.6°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#4D286E
RGBrgb(77, 40, 110)
HSLhsl(272, 47%, 29%)
HSVhsv(272, 64%, 43%)
CMYKcmyk(30%, 63.6%, 0%, 56.9%)
CIE-LABlab(24.39, 31.76, -34.15)
CIE-LCHlch(24.39, 46.64, 312.93°)
OKLaboklab(36.18% 0.0692 -0.0965)
OKLCHoklch(36.18% 0.119 305.6)
XYZxyz(6.6332, 4.2212, 15.2142)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D286E #496E28
analogous
#2A286E #4D286E #6E286C
triadic
#4D286E #6E4D28 #286E4D
tetradic
#4D286E #6E2A28 #496E28 #286C6E
square
#4D286E #6E2A28 #496E28 #286C6E
split-complementary
#4D286E #6C6E28 #286E2A
monochromatic
#100816 #2E1841 #4D286E #6C389B #8B51C0

Accessibility & contrast

On white

11.39
#4D286E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D286E
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D286E#FFFFFF#000000##FFFFFF
##4D286E1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063970
Deuteranopia (green-blind)
#193A6C
Tritanopia (blue-blind)
#473647
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d286e;
/* rgb */ color: rgb(77, 40, 110);
/* oklch */ color: oklch(36.2% 0.119 305.6);
Tailwind
colors: {
  custom: {
    50: '#816498',
    500: '#4d286e',
    950: '#000000',
  },
}
SCSS
$custom: #4d286e;
$custom-light: #816498;
$custom-dark: #000000;
JSON
{
  "hex": "#4d286e",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 110
  },
  "hsl": {
    "h": 271.714,
    "s": 46.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36181,
    "c": 0.11872,
    "h": 305.6
  },
  "luminance": 0.04221
}

Semantic roles & 50–950 ramp

primary
#4D286E
secondary
#77A051
accent
#D65190
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4D286E

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

Preview Lab → · Contrast checker → · Palette generator →

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