#4C259E#4C259E

#4C259E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.180 H 290.4°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#4C259E
RGBrgb(76, 37, 158)
HSLhsl(259, 62%, 38%)
HSVhsv(259, 77%, 62%)
CMYKcmyk(51.9%, 76.6%, 0%, 38%)
CIE-LABlab(27.65, 46.41, -58.89)
CIE-LCHlch(27.65, 74.98, 308.24°)
OKLaboklab(39.71% 0.0629 -0.1692)
OKLCHoklch(39.71% 0.18 290.4)
XYZxyz(9.8118, 5.3278, 32.8525)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C259E #779E25
analogous
#253A9E #4C259E #88259E
triadic
#4C259E #9E4C25 #259E4C
tetradic
#4C259E #9E253A #779E25 #259E88
square
#4C259E #9E253A #779E25 #259E88
split-complementary
#4C259E #9E8825 #3A9E25
monochromatic
#1C0E3B #34196C #4C259E #6431CF #8963DA

Accessibility & contrast

On white

10.17
#4C259E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C259E
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C259E#FFFFFF#000000##FFFFFF
##4C259E1.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#003E9C
Tritanopia (blue-blind)
#2F4660
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c259e;
/* rgb */ color: rgb(76, 37, 158);
/* oklch */ color: oklch(39.7% 0.180 290.4);
Tailwind
colors: {
  custom: {
    50: '#8764bc',
    500: '#4c259e',
    950: '#000000',
  },
}
SCSS
$custom: #4c259e;
$custom-light: #8764bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c259e",
  "rgb": {
    "r": 76,
    "g": 37,
    "b": 158
  },
  "hsl": {
    "h": 259.339,
    "s": 62.051,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39714,
    "c": 0.18048,
    "h": 290.4
  },
  "luminance": 0.05328
}

Semantic roles & 50–950 ramp

primary
#4C259E
secondary
#A1C05F
accent
#E543B1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C259E

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

Preview Lab → · Contrast checker → · Palette generator →

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