#4C258D#4C258D

#4C258D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.161 H 294.7°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#4C258D
RGBrgb(76, 37, 141)
HSLhsl(263, 58%, 35%)
HSVhsv(263, 74%, 55%)
CMYKcmyk(46.1%, 73.8%, 0%, 44.7%)
CIE-LABlab(26.11, 41.65, -50.96)
CIE-LCHlch(26.11, 65.82, 309.26°)
OKLaboklab(38.15% 0.0671 -0.1459)
OKLCHoklch(38.15% 0.161 294.7)
XYZxyz(8.4485, 4.7825, 25.6721)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C258D #668D25
analogous
#25328D #4C258D #80258D
triadic
#4C258D #8D4C25 #258D4C
tetradic
#4C258D #8D2532 #668D25 #258D80
square
#4C258D #8D2532 #668D25 #258D80
split-complementary
#4C258D #8D8025 #328D25
monochromatic
#180C2C #32185D #4C258D #6632BD #8759D3

Accessibility & contrast

On white

10.73
#4C258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4C258D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C258D
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C258D#FFFFFF#000000##FFFFFF
##4C258D1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#3A4056
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c258d;
/* rgb */ color: rgb(76, 37, 141);
/* oklch */ color: oklch(38.2% 0.161 294.7);
Tailwind
colors: {
  custom: {
    50: '#8463af',
    500: '#4c258d',
    950: '#000000',
  },
}
SCSS
$custom: #4c258d;
$custom-light: #8463af;
$custom-dark: #000000;
JSON
{
  "hex": "#4c258d",
  "rgb": {
    "r": 76,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 262.5,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38152,
    "c": 0.16062,
    "h": 294.7
  },
  "luminance": 0.04783
}

Semantic roles & 50–950 ramp

primary
#4C258D
secondary
#93B856
accent
#E246A7
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4C258D

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

Preview Lab → · Contrast checker → · Palette generator →

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