#4D286A#4D286A

#4D286A is a dark, moderate violet. Relative luminance 0.041; OKLCH L 35.9% C 0.114 H 307.5°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#4D286A
RGBrgb(77, 40, 106)
HSLhsl(274, 45%, 29%)
HSVhsv(274, 62%, 42%)
CMYKcmyk(27.4%, 62.3%, 0%, 58.4%)
CIE-LABlab(24.12, 30.71, -32.00)
CIE-LCHlch(24.12, 44.36, 313.82°)
OKLaboklab(35.89% 0.0692 -0.0902)
OKLCHoklch(35.89% 0.114 307.5)
XYZxyz(6.4203, 4.1361, 14.0930)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D286A #456A28
analogous
#2C286A #4D286A #6A2866
triadic
#4D286A #6A4D28 #286A4D
tetradic
#4D286A #6A2C28 #456A28 #28666A
square
#4D286A #6A2C28 #456A28 #28666A
split-complementary
#4D286A #666A28 #286A2C
monochromatic
#100816 #2D173E #4D286A #6D3996 #8D50BD

Accessibility & contrast

On white

11.49
#4D286A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4D286A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D286A
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D286A#FFFFFF#000000##FFFFFF
##4D286A1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D386C
Deuteranopia (green-blind)
#1E3A68
Tritanopia (blue-blind)
#493545
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d286a;
/* rgb */ color: rgb(77, 40, 106);
/* oklch */ color: oklch(35.9% 0.114 307.5);
Tailwind
colors: {
  custom: {
    50: '#816495',
    500: '#4d286a',
    950: '#000000',
  },
}
SCSS
$custom: #4d286a;
$custom-light: #816495;
$custom-dark: #000000;
JSON
{
  "hex": "#4d286a",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 106
  },
  "hsl": {
    "h": 273.636,
    "s": 45.205,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35894,
    "c": 0.11369,
    "h": 307.5
  },
  "luminance": 0.04136
}

Semantic roles & 50–950 ramp

primary
#4D286A
secondary
#729D51
accent
#D5538C
background
#F8F6F9
surface
#EFEBF1
border
#CAC6CB
text
#0A050D
muted
#7C7A7E

Preview Lab

Preview with #4D286A

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

Preview Lab → · Contrast checker → · Palette generator →

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