#4A259D#4A259D

#4A259D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.179 H 289.6°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#4A259D
RGBrgb(74, 37, 157)
HSLhsl(259, 62%, 38%)
HSVhsv(259, 76%, 62%)
CMYKcmyk(52.9%, 76.4%, 0%, 38.4%)
CIE-LABlab(27.33, 45.83, -58.80)
CIE-LCHlch(27.33, 74.55, 307.93°)
OKLaboklab(39.41% 0.06 -0.169)
OKLCHoklch(39.41% 0.179 289.6)
XYZxyz(9.5696, 5.2129, 32.3937)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A259D #789D25
analogous
#253C9D #4A259D #86259D
triadic
#4A259D #9D4A25 #259D4A
tetradic
#4A259D #9D253C #789D25 #259D86
square
#4A259D #9D253C #789D25 #259D86
split-complementary
#4A259D #9D8625 #3C9D25
monochromatic
#1B0E3A #33196B #4A259D #6131CE #8762DA

Accessibility & contrast

On white

10.28
#4A259D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4A259D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A259D
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A259D#FFFFFF#000000##FFFFFF
##4A259D1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a259d;
/* rgb */ color: rgb(74, 37, 157);
/* oklch */ color: oklch(39.4% 0.179 289.6);
Tailwind
colors: {
  custom: {
    50: '#8664bb',
    500: '#4a259d',
    950: '#000000',
  },
}
SCSS
$custom: #4a259d;
$custom-light: #8664bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4a259d",
  "rgb": {
    "r": 74,
    "g": 37,
    "b": 157
  },
  "hsl": {
    "h": 258.5,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39411,
    "c": 0.17936,
    "h": 289.6
  },
  "luminance": 0.05213
}

Semantic roles & 50–950 ramp

primary
#4A259D
secondary
#A2BF5E
accent
#E543B3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A259D

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

Preview Lab → · Contrast checker → · Palette generator →

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