#4A259E#4A259E

#4A259E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.181 H 289.3°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#4A259E
RGBrgb(74, 37, 158)
HSLhsl(258, 62%, 38%)
HSVhsv(258, 77%, 62%)
CMYKcmyk(53.2%, 76.6%, 0%, 38%)
CIE-LABlab(27.43, 46.11, -59.26)
CIE-LCHlch(27.43, 75.08, 307.89°)
OKLaboklab(39.51% 0.0598 -0.1703)
OKLCHoklch(39.51% 0.181 289.3)
XYZxyz(9.6554, 5.2472, 32.8452)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A259E #799E25
analogous
#253C9E #4A259E #86259E
triadic
#4A259E #9E4A25 #259E4A
tetradic
#4A259E #9E253C #799E25 #259E86
square
#4A259E #9E253C #799E25 #259E86
split-complementary
#4A259E #9E8625 #3C9E25
monochromatic
#1C0E3B #33196C #4A259E #6231CF #8763DA

Accessibility & contrast

On white

10.25
#4A259E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A259E
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A259E#FFFFFF#000000##FFFFFF
##4A259E1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a259e;
/* rgb */ color: rgb(74, 37, 158);
/* oklch */ color: oklch(39.5% 0.181 289.3);
Tailwind
colors: {
  custom: {
    50: '#8664bc',
    500: '#4a259e',
    950: '#000000',
  },
}
SCSS
$custom: #4a259e;
$custom-light: #8664bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a259e",
  "rgb": {
    "r": 74,
    "g": 37,
    "b": 158
  },
  "hsl": {
    "h": 258.347,
    "s": 62.051,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39507,
    "c": 0.18052,
    "h": 289.3
  },
  "luminance": 0.05248
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4A259E

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

Preview Lab → · Contrast checker → · Palette generator →

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