#4D256B#4D256B

#4D256B is a dark, moderate violet. Relative luminance 0.040; OKLCH L 35.5% C 0.120 H 307.7°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#4D256B
RGBrgb(77, 37, 107)
HSLhsl(274, 49%, 28%)
HSVhsv(274, 65%, 42%)
CMYKcmyk(28%, 65.4%, 0%, 58%)
CIE-LABlab(23.55, 32.69, -33.56)
CIE-LCHlch(23.55, 46.85, 314.25°)
OKLaboklab(35.5% 0.0733 -0.0948)
OKLCHoklch(35.5% 0.12 307.7)
XYZxyz(6.3754, 3.9625, 14.3361)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D256B #436B25
analogous
#2A256B #4D256B #6B2566
triadic
#4D256B #6B4D25 #256B4D
tetradic
#4D256B #6B2A25 #436B25 #25666B
square
#4D256B #6B2A25 #436B25 #25666B
split-complementary
#4D256B #666B25 #256B2A
monochromatic
#100817 #2C153E #4D256B #6E3598 #8E4AC0

Accessibility & contrast

On white

11.72
#4D256B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D256B
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D256B#FFFFFF#000000##FFFFFF
##4D256B1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02376D
Deuteranopia (green-blind)
#193869
Tritanopia (blue-blind)
#483344
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d256b;
/* rgb */ color: rgb(77, 37, 107);
/* oklch */ color: oklch(35.5% 0.120 307.7);
Tailwind
colors: {
  custom: {
    50: '#816296',
    500: '#4d256b',
    950: '#000000',
  },
}
SCSS
$custom: #4d256b;
$custom-light: #816296;
$custom-dark: #000000;
JSON
{
  "hex": "#4d256b",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 107
  },
  "hsl": {
    "h": 274.286,
    "s": 48.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35502,
    "c": 0.11982,
    "h": 307.7
  },
  "luminance": 0.03962
}

Semantic roles & 50–950 ramp

primary
#4D256B
secondary
#709E4E
accent
#D8508A
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4D256B

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

Preview Lab → · Contrast checker → · Palette generator →

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