#4D286B#4D286B

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

Color values

HEX#4D286B
RGBrgb(77, 40, 107)
HSLhsl(273, 46%, 29%)
HSVhsv(273, 63%, 42%)
CMYKcmyk(28%, 62.6%, 0%, 58%)
CIE-LABlab(24.18, 30.98, -32.54)
CIE-LCHlch(24.18, 44.93, 313.59°)
OKLaboklab(35.96% 0.0692 -0.0918)
OKLCHoklch(35.96% 0.115 307)
XYZxyz(6.4727, 4.1570, 14.3685)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D286B #466B28
analogous
#2C286B #4D286B #6B2868
triadic
#4D286B #6B4D28 #286B4D
tetradic
#4D286B #6B2C28 #466B28 #28686B
square
#4D286B #6B2C28 #466B28 #28686B
split-complementary
#4D286B #686B28 #286B2C
monochromatic
#100816 #2D173E #4D286B #6D3998 #8C50BE

Accessibility & contrast

On white

11.47
#4D286B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D286B
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D286B#FFFFFF#000000##FFFFFF
##4D286B1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C386D
Deuteranopia (green-blind)
#1D3A69
Tritanopia (blue-blind)
#483545
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d286b;
/* rgb */ color: rgb(77, 40, 107);
/* oklch */ color: oklch(36.0% 0.115 307.0);
Tailwind
colors: {
  custom: {
    50: '#816496',
    500: '#4d286b',
    950: '#000000',
  },
}
SCSS
$custom: #4d286b;
$custom-light: #816496;
$custom-dark: #000000;
JSON
{
  "hex": "#4d286b",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 107
  },
  "hsl": {
    "h": 273.134,
    "s": 45.578,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35964,
    "c": 0.11495,
    "h": 307
  },
  "luminance": 0.04157
}

Semantic roles & 50–950 ramp

primary
#4D286B
secondary
#739D51
accent
#D5538D
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050D
muted
#7C7A7E

Preview Lab

Preview with #4D286B

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

Preview Lab → · Contrast checker → · Palette generator →

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