#4C259F#4C259F

#4C259F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.182 H 290.2°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#4C259F
RGBrgb(76, 37, 159)
HSLhsl(259, 62%, 38%)
HSVhsv(259, 77%, 62%)
CMYKcmyk(52.2%, 76.7%, 0%, 37.6%)
CIE-LABlab(27.74, 46.69, -59.34)
CIE-LCHlch(27.74, 75.51, 308.20°)
OKLaboklab(39.81% 0.0626 -0.1705)
OKLCHoklch(39.81% 0.182 290.2)
XYZxyz(9.8983, 5.3624, 33.3077)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C259F #789F25
analogous
#253B9F #4C259F #89259F
triadic
#4C259F #9F4C25 #259F4C
tetradic
#4C259F #9F253B #789F25 #259F89
square
#4C259F #9F253B #789F25 #259F89
split-complementary
#4C259F #9F8925 #3B9F25
monochromatic
#1D0E3C #34196D #4C259F #6432CF #8A64DB

Accessibility & contrast

On white

10.13
#4C259F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4C259F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C259F
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C259F#FFFFFF#000000##FFFFFF
##4C259F1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#2E4761
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c259f;
/* rgb */ color: rgb(76, 37, 159);
/* oklch */ color: oklch(39.8% 0.182 290.2);
Tailwind
colors: {
  custom: {
    50: '#8764bc',
    500: '#4c259f',
    950: '#000000',
  },
}
SCSS
$custom: #4c259f;
$custom-light: #8764bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c259f",
  "rgb": {
    "r": 76,
    "g": 37,
    "b": 159
  },
  "hsl": {
    "h": 259.18,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39808,
    "c": 0.18163,
    "h": 290.2
  },
  "luminance": 0.05363
}

Semantic roles & 50–950 ramp

primary
#4C259F
secondary
#A1C05F
accent
#E542B1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C259F

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

Preview Lab → · Contrast checker → · Palette generator →

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