#4A259B#4A259B

#4A259B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.177 H 290.0°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#4A259B
RGBrgb(74, 37, 155)
HSLhsl(259, 61%, 38%)
HSVhsv(259, 76%, 61%)
CMYKcmyk(52.3%, 76.1%, 0%, 39.2%)
CIE-LABlab(27.14, 45.26, -57.89)
CIE-LCHlch(27.14, 73.48, 308.02°)
OKLaboklab(39.22% 0.0606 -0.1663)
OKLCHoklch(39.22% 0.177 290)
XYZxyz(9.4003, 5.1451, 31.5018)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A259B #769B25
analogous
#253B9B #4A259B #85259B
triadic
#4A259B #9B4A25 #259B4A
tetradic
#4A259B #9B253B #769B25 #259B85
square
#4A259B #9B253B #769B25 #259B85
split-complementary
#4A259B #9B8525 #3B9B25
monochromatic
#1B0D38 #32196A #4A259B #6231CC #8761D9

Accessibility & contrast

On white

10.35
#4A259B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4A259B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A259B
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A259B#FFFFFF#000000##FFFFFF
##4A259B1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003D99
Tritanopia (blue-blind)
#2D455E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4a259b;
/* rgb */ color: rgb(74, 37, 155);
/* oklch */ color: oklch(39.2% 0.177 290.0);
Tailwind
colors: {
  custom: {
    50: '#8564ba',
    500: '#4a259b',
    950: '#000000',
  },
}
SCSS
$custom: #4a259b;
$custom-light: #8564ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4a259b",
  "rgb": {
    "r": 74,
    "g": 37,
    "b": 155
  },
  "hsl": {
    "h": 258.814,
    "s": 61.458,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39221,
    "c": 0.17703,
    "h": 290
  },
  "luminance": 0.05146
}

Semantic roles & 50–950 ramp

primary
#4A259B
secondary
#A0BF5D
accent
#E543B2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A259B

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

Preview Lab → · Contrast checker → · Palette generator →

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