#4D254F#4D254F

#4D254F is a dark, moderate purple. Relative luminance 0.035; OKLCH L 33.7% C 0.087 H 325.5°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#4D254F
RGBrgb(77, 37, 79)
HSLhsl(297, 36%, 23%)
HSVhsv(297, 53%, 31%)
CMYKcmyk(2.5%, 53.2%, 0%, 69%)
CIE-LABlab(21.82, 25.98, -17.84)
CIE-LCHlch(21.82, 31.51, 325.53°)
OKLaboklab(33.68% 0.0713 -0.049)
OKLCHoklch(33.68% 0.087 325.5)
XYZxyz(5.1333, 3.4657, 7.7942)
Luminance0.0347 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D254F #274F25
analogous
#38254F #4D254F #4F253C
triadic
#4D254F #4F4D25 #254F4D
tetradic
#4D254F #4F3825 #274F25 #253C4F
square
#4D254F #4F3825 #274F25 #253C4F
split-complementary
#4D254F #3C4F25 #254F38
monochromatic
#140A15 #241125 #4D254F #763979 #9E4CA2

Accessibility & contrast

On white

12.40
#4D254F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4D254F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D254F
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D254F#FFFFFF#000000##FFFFFF
##4D254F1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203150
Deuteranopia (green-blind)
#2C364E
Tritanopia (blue-blind)
#4F2A36
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d254f;
/* rgb */ color: rgb(77, 37, 79);
/* oklch */ color: oklch(33.7% 0.087 325.5);
Tailwind
colors: {
  custom: {
    50: '#806180',
    500: '#4d254f',
    950: '#000000',
  },
}
SCSS
$custom: #4d254f;
$custom-light: #806180;
$custom-dark: #000000;
JSON
{
  "hex": "#4d254f",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 79
  },
  "hsl": {
    "h": 297.143,
    "s": 36.207,
    "l": 22.745
  },
  "oklch": {
    "l": 0.33677,
    "c": 0.08656,
    "h": 325.5
  },
  "luminance": 0.03465
}

Semantic roles & 50–950 ramp

primary
#4D254F
secondary
#50824E
accent
#CC5C61
background
#F7F5F7
surface
#EEEAEE
border
#C9C6C9
text
#0A050A
muted
#7C797C

Preview Lab

Preview with #4D254F

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

Preview Lab → · Contrast checker → · Palette generator →

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