#4A259F#4A259F

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

Color values

HEX#4A259F
RGBrgb(74, 37, 159)
HSLhsl(258, 62%, 38%)
HSVhsv(258, 77%, 62%)
CMYKcmyk(53.5%, 76.7%, 0%, 37.6%)
CIE-LABlab(27.52, 46.40, -59.71)
CIE-LCHlch(27.52, 75.62, 307.85°)
OKLaboklab(39.6% 0.0595 -0.1717)
OKLCHoklch(39.6% 0.182 289.1)
XYZxyz(9.7418, 5.2817, 33.3003)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A259F #7A9F25
analogous
#253D9F #4A259F #87259F
triadic
#4A259F #9F4A25 #259F4A
tetradic
#4A259F #9F253D #7A9F25 #259F87
square
#4A259F #9F253D #7A9F25 #259F87
split-complementary
#4A259F #9F8725 #3D9F25
monochromatic
#1C0E3C #33196D #4A259F #6232CF #8864DB

Accessibility & contrast

On white

10.21
#4A259F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A259F
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A259F#FFFFFF#000000##FFFFFF
##4A259F1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003E9D
Tritanopia (blue-blind)
#294761
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4a259f;
/* rgb */ color: rgb(74, 37, 159);
/* oklch */ color: oklch(39.6% 0.182 289.1);
Tailwind
colors: {
  custom: {
    50: '#8664bc',
    500: '#4a259f',
    950: '#000000',
  },
}
SCSS
$custom: #4a259f;
$custom-light: #8664bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a259f",
  "rgb": {
    "r": 74,
    "g": 37,
    "b": 159
  },
  "hsl": {
    "h": 258.197,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39602,
    "c": 0.18169,
    "h": 289.1
  },
  "luminance": 0.05282
}

Semantic roles & 50–950 ramp

primary
#4A259F
secondary
#A3C05F
accent
#E542B4
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A259F

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

Preview Lab → · Contrast checker → · Palette generator →

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