#4D256F#4D256F

#4D256F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.125 H 305.9°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#4D256F
RGBrgb(77, 37, 111)
HSLhsl(272, 50%, 29%)
HSVhsv(272, 67%, 44%)
CMYKcmyk(30.6%, 66.7%, 0%, 56.5%)
CIE-LABlab(23.83, 33.73, -35.69)
CIE-LCHlch(23.83, 49.10, 313.38°)
OKLaboklab(35.8% 0.0731 -0.101)
OKLCHoklch(35.8% 0.125 305.9)
XYZxyz(6.5908, 4.0487, 15.4701)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D256F #476F25
analogous
#28256F #4D256F #6F256C
triadic
#4D256F #6F4D25 #256F4D
tetradic
#4D256F #6F2825 #476F25 #256C6F
square
#4D256F #6F2825 #476F25 #256C6F
split-complementary
#4D256F #6C6F25 #256F28
monochromatic
#100817 #2D1641 #4D256F #6D349D #8C4BC3

Accessibility & contrast

On white

11.60
#4D256F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4D256F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D256F
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D256F#FFFFFF#000000##FFFFFF
##4D256F1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003771
Deuteranopia (green-blind)
#14396D
Tritanopia (blue-blind)
#473446
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d256f;
/* rgb */ color: rgb(77, 37, 111);
/* oklch */ color: oklch(35.8% 0.125 305.9);
Tailwind
colors: {
  custom: {
    50: '#826299',
    500: '#4d256f',
    950: '#000000',
  },
}
SCSS
$custom: #4d256f;
$custom-light: #826299;
$custom-dark: #000000;
JSON
{
  "hex": "#4d256f",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 111
  },
  "hsl": {
    "h": 272.432,
    "s": 50,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35798,
    "c": 0.12469,
    "h": 305.9
  },
  "luminance": 0.04049
}

Semantic roles & 50–950 ramp

primary
#4D256F
secondary
#74A24E
accent
#DA4E8E
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4D256F

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

Preview Lab → · Contrast checker → · Palette generator →

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