#4D286C#4D286C

#4D286C is a dark, moderate violet. Relative luminance 0.042; OKLCH L 36.0% C 0.116 H 306.5°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#4D286C
RGBrgb(77, 40, 108)
HSLhsl(273, 46%, 29%)
HSVhsv(273, 63%, 42%)
CMYKcmyk(28.7%, 63%, 0%, 57.6%)
CIE-LABlab(24.25, 31.24, -33.08)
CIE-LCHlch(24.25, 45.50, 313.36°)
OKLaboklab(36.04% 0.0692 -0.0934)
OKLCHoklch(36.04% 0.116 306.5)
XYZxyz(6.5256, 4.1781, 14.6471)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D286C #476C28
analogous
#2B286C #4D286C #6C2869
triadic
#4D286C #6C4D28 #286C4D
tetradic
#4D286C #6C2B28 #476C28 #28696C
square
#4D286C #6C2B28 #476C28 #28696C
split-complementary
#4D286C #696C28 #286C2B
monochromatic
#100816 #2D173F #4D286C #6D3999 #8C50BE

Accessibility & contrast

On white

11.44
#4D286C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D286C
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D286C#FFFFFF#000000##FFFFFF
##4D286C1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A386E
Deuteranopia (green-blind)
#1C3A6A
Tritanopia (blue-blind)
#483546
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d286c;
/* rgb */ color: rgb(77, 40, 108);
/* oklch */ color: oklch(36.0% 0.116 306.5);
Tailwind
colors: {
  custom: {
    50: '#816496',
    500: '#4d286c',
    950: '#000000',
  },
}
SCSS
$custom: #4d286c;
$custom-light: #816496;
$custom-dark: #000000;
JSON
{
  "hex": "#4d286c",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 108
  },
  "hsl": {
    "h": 272.647,
    "s": 45.946,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36036,
    "c": 0.11621,
    "h": 306.5
  },
  "luminance": 0.04178
}

Semantic roles & 50–950 ramp

primary
#4D286C
secondary
#749E51
accent
#D6528E
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050D
muted
#7C7A7E

Preview Lab

Preview with #4D286C

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

Preview Lab → · Contrast checker → · Palette generator →

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