#4C259C#4C259C

#4C259C is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.178 H 290.8°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#4C259C
RGBrgb(76, 37, 156)
HSLhsl(260, 62%, 38%)
HSVhsv(260, 76%, 61%)
CMYKcmyk(51.3%, 76.3%, 0%, 38.8%)
CIE-LABlab(27.46, 45.85, -57.97)
CIE-LCHlch(27.46, 73.91, 308.34°)
OKLaboklab(39.53% 0.0634 -0.1665)
OKLCHoklch(39.53% 0.178 290.8)
XYZxyz(9.6411, 5.2595, 31.9532)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C259C #759C25
analogous
#25399C #4C259C #87259C
triadic
#4C259C #9C4C25 #259C4C
tetradic
#4C259C #9C2539 #759C25 #259C87
square
#4C259C #9C2539 #759C25 #259C87
split-complementary
#4C259C #9C8725 #399C25
monochromatic
#1C0E39 #34196B #4C259C #6431CD #8962DA

Accessibility & contrast

On white

10.23
#4C259C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4C259C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C259C
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C259C#FFFFFF#000000##FFFFFF
##4C259C1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#003E9A
Tritanopia (blue-blind)
#30465F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c259c;
/* rgb */ color: rgb(76, 37, 156);
/* oklch */ color: oklch(39.5% 0.178 290.8);
Tailwind
colors: {
  custom: {
    50: '#8764ba',
    500: '#4c259c',
    950: '#000000',
  },
}
SCSS
$custom: #4c259c;
$custom-light: #8764ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4c259c",
  "rgb": {
    "r": 76,
    "g": 37,
    "b": 156
  },
  "hsl": {
    "h": 259.664,
    "s": 61.658,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39525,
    "c": 0.17817,
    "h": 290.8
  },
  "luminance": 0.0526
}

Semantic roles & 50–950 ramp

primary
#4C259C
secondary
#9FBF5E
accent
#E543B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C259C

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

Preview Lab → · Contrast checker → · Palette generator →

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