#4C258B#4C258B

#4C258B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.158 H 295.3°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#4C258B
RGBrgb(76, 37, 139)
HSLhsl(263, 58%, 35%)
HSVhsv(263, 73%, 55%)
CMYKcmyk(45.3%, 73.4%, 0%, 45.5%)
CIE-LABlab(25.93, 41.10, -50.00)
CIE-LCHlch(25.93, 64.72, 309.42°)
OKLaboklab(37.97% 0.0675 -0.1431)
OKLCHoklch(37.97% 0.158 295.3)
XYZxyz(8.3010, 4.7235, 24.8955)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C258B #648B25
analogous
#25318B #4C258B #7F258B
triadic
#4C258B #8B4C25 #258B4C
tetradic
#4C258B #8B2531 #648B25 #258B7F
square
#4C258B #8B2531 #648B25 #258B7F
split-complementary
#4C258B #8B7F25 #318B25
monochromatic
#170B2A #32185B #4C258B #6632BB #8758D3

Accessibility & contrast

On white

10.80
#4C258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4C258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C258B
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C258B#FFFFFF#000000##FFFFFF
##4C258B1.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#3B3F55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c258b;
/* rgb */ color: rgb(76, 37, 139);
/* oklch */ color: oklch(38.0% 0.158 295.3);
Tailwind
colors: {
  custom: {
    50: '#8463ae',
    500: '#4c258b',
    950: '#000000',
  },
}
SCSS
$custom: #4c258b;
$custom-light: #8463ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c258b",
  "rgb": {
    "r": 76,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 262.941,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37974,
    "c": 0.15825,
    "h": 295.3
  },
  "luminance": 0.04724
}

Semantic roles & 50–950 ramp

primary
#4C258B
secondary
#91B755
accent
#E147A6
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4C258B

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

Preview Lab → · Contrast checker → · Palette generator →

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