#4C257D#4C257D

#4C257D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.141 H 299.7°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#4C257D
RGBrgb(76, 37, 125)
HSLhsl(267, 54%, 32%)
HSVhsv(267, 70%, 49%)
CMYKcmyk(39.2%, 70.4%, 0%, 51%)
CIE-LABlab(24.77, 37.24, -43.12)
CIE-LCHlch(24.77, 56.97, 310.81°)
OKLaboklab(36.78% 0.0701 -0.1229)
OKLCHoklch(36.78% 0.141 299.7)
XYZxyz(7.3428, 4.3402, 19.8490)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C257D #567D25
analogous
#252A7D #4C257D #78257D
triadic
#4C257D #7D4C25 #257D4C
tetradic
#4C257D #7D252A #567D25 #257D78
square
#4C257D #7D252A #567D25 #257D78
split-complementary
#4C257D #7D7825 #2A7D25
monochromatic
#13091F #2F174E #4C257D #6933AC #8751CB

Accessibility & contrast

On white

11.24
#4C257D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4C257D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C257D
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C257D#FFFFFF#000000##FFFFFF
##4C257D1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#003A7B
Tritanopia (blue-blind)
#413A4E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c257d;
/* rgb */ color: rgb(76, 37, 125);
/* oklch */ color: oklch(36.8% 0.141 299.7);
Tailwind
colors: {
  custom: {
    50: '#8363a3',
    500: '#4c257d',
    950: '#000000',
  },
}
SCSS
$custom: #4c257d;
$custom-light: #8363a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c257d",
  "rgb": {
    "r": 76,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 266.591,
    "s": 54.321,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36779,
    "c": 0.14148,
    "h": 299.7
  },
  "luminance": 0.0434
}

Semantic roles & 50–950 ramp

primary
#4C257D
secondary
#84AF4F
accent
#DE4A9C
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4C257D

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

Preview Lab → · Contrast checker → · Palette generator →

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