#4D256A#4D256A

#4D256A is a dark, moderate violet. Relative luminance 0.039; OKLCH L 35.4% C 0.119 H 308.2°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#4D256A
RGBrgb(77, 37, 106)
HSLhsl(275, 48%, 28%)
HSVhsv(275, 65%, 42%)
CMYKcmyk(27.4%, 65.1%, 0%, 58.4%)
CIE-LABlab(23.48, 32.44, -33.03)
CIE-LCHlch(23.48, 46.29, 314.48°)
OKLaboklab(35.43% 0.0734 -0.0932)
OKLCHoklch(35.43% 0.119 308.2)
XYZxyz(6.3231, 3.9416, 14.0606)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D256A #426A25
analogous
#2A256A #4D256A #6A2564
triadic
#4D256A #6A4D25 #256A4D
tetradic
#4D256A #6A2A25 #426A25 #25646A
square
#4D256A #6A2A25 #426A25 #25646A
split-complementary
#4D256A #646A25 #256A2A
monochromatic
#100817 #2C153D #4D256A #6E3597 #8E4AC0

Accessibility & contrast

On white

11.74
#4D256A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4D256A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D256A
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D256A#FFFFFF#000000##FFFFFF
##4D256A1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04366C
Deuteranopia (green-blind)
#1A3868
Tritanopia (blue-blind)
#493343
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d256a;
/* rgb */ color: rgb(77, 37, 106);
/* oklch */ color: oklch(35.4% 0.119 308.2);
Tailwind
colors: {
  custom: {
    50: '#816295',
    500: '#4d256a',
    950: '#000000',
  },
}
SCSS
$custom: #4d256a;
$custom-light: #816295;
$custom-dark: #000000;
JSON
{
  "hex": "#4d256a",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 106
  },
  "hsl": {
    "h": 274.783,
    "s": 48.252,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35429,
    "c": 0.1186,
    "h": 308.2
  },
  "luminance": 0.03942
}

Semantic roles & 50–950 ramp

primary
#4D256A
secondary
#6F9D4E
accent
#D85089
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4D256A

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

Preview Lab → · Contrast checker → · Palette generator →

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