#4C258E#4C258E

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

Color values

HEX#4C258E
RGBrgb(76, 37, 142)
HSLhsl(262, 59%, 35%)
HSVhsv(262, 74%, 56%)
CMYKcmyk(46.5%, 73.9%, 0%, 44.3%)
CIE-LABlab(26.19, 41.93, -51.44)
CIE-LCHlch(26.19, 66.36, 309.19°)
OKLaboklab(38.24% 0.0669 -0.1473)
OKLCHoklch(38.24% 0.162 294.4)
XYZxyz(8.5232, 4.8124, 26.0658)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C258E #678E25
analogous
#25328E #4C258E #81258E
triadic
#4C258E #8E4C25 #258E4C
tetradic
#4C258E #8E2532 #678E25 #258E81
square
#4C258E #8E2532 #678E25 #258E81
split-complementary
#4C258E #8E8125 #328E25
monochromatic
#180C2D #32185D #4C258E #6632BF #875AD4

Accessibility & contrast

On white

10.70
#4C258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C258E
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C258E#FFFFFF#000000##FFFFFF
##4C258E1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#394057
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c258e;
/* rgb */ color: rgb(76, 37, 142);
/* oklch */ color: oklch(38.2% 0.162 294.4);
Tailwind
colors: {
  custom: {
    50: '#8563b0',
    500: '#4c258e',
    950: '#000000',
  },
}
SCSS
$custom: #4c258e;
$custom-light: #8563b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c258e",
  "rgb": {
    "r": 76,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 262.286,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38241,
    "c": 0.1618,
    "h": 294.4
  },
  "luminance": 0.04813
}

Semantic roles & 50–950 ramp

primary
#4C258E
secondary
#94B956
accent
#E246A8
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4C258E

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

Preview Lab → · Contrast checker → · Palette generator →

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