#4C259D#4C259D

#4C259D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.179 H 290.6°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#4C259D
RGBrgb(76, 37, 157)
HSLhsl(260, 62%, 38%)
HSVhsv(260, 76%, 62%)
CMYKcmyk(51.6%, 76.4%, 0%, 38.4%)
CIE-LABlab(27.56, 46.13, -58.43)
CIE-LCHlch(27.56, 74.44, 308.29°)
OKLaboklab(39.62% 0.0631 -0.1678)
OKLCHoklch(39.62% 0.179 290.6)
XYZxyz(9.7261, 5.2936, 32.4010)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C259D #769D25
analogous
#253A9D #4C259D #88259D
triadic
#4C259D #9D4C25 #259D4C
tetradic
#4C259D #9D253A #769D25 #259D88
square
#4C259D #9D253A #769D25 #259D88
split-complementary
#4C259D #9D8825 #3A9D25
monochromatic
#1C0E3A #34196B #4C259D #6431CE #8962DA

Accessibility & contrast

On white

10.20
#4C259D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4C259D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C259D
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C259D#FFFFFF#000000##FFFFFF
##4C259D1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#003E9B
Tritanopia (blue-blind)
#30465F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c259d;
/* rgb */ color: rgb(76, 37, 157);
/* oklch */ color: oklch(39.6% 0.179 290.6);
Tailwind
colors: {
  custom: {
    50: '#8764bb',
    500: '#4c259d',
    950: '#000000',
  },
}
SCSS
$custom: #4c259d;
$custom-light: #8764bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4c259d",
  "rgb": {
    "r": 76,
    "g": 37,
    "b": 157
  },
  "hsl": {
    "h": 259.5,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39619,
    "c": 0.17933,
    "h": 290.6
  },
  "luminance": 0.05294
}

Semantic roles & 50–950 ramp

primary
#4C259D
secondary
#A0BF5E
accent
#E543B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C259D

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

Preview Lab → · Contrast checker → · Palette generator →

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