#4A259C#4A259C

#4A259C is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.178 H 289.8°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#4A259C
RGBrgb(74, 37, 156)
HSLhsl(259, 62%, 38%)
HSVhsv(259, 76%, 61%)
CMYKcmyk(52.6%, 76.3%, 0%, 38.8%)
CIE-LABlab(27.24, 45.54, -58.35)
CIE-LCHlch(27.24, 74.02, 307.97°)
OKLaboklab(39.32% 0.0603 -0.1677)
OKLCHoklch(39.32% 0.178 289.8)
XYZxyz(9.4846, 5.1789, 31.9459)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A259C #779C25
analogous
#253C9C #4A259C #85259C
triadic
#4A259C #9C4A25 #259C4A
tetradic
#4A259C #9C253C #779C25 #259C85
square
#4A259C #9C253C #779C25 #259C85
split-complementary
#4A259C #9C8525 #3C9C25
monochromatic
#1B0E39 #33196B #4A259C #6131CD #8762DA

Accessibility & contrast

On white

10.32
#4A259C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A259C
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A259C#FFFFFF#000000##FFFFFF
##4A259C1.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#003D9A
Tritanopia (blue-blind)
#2C465F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4a259c;
/* rgb */ color: rgb(74, 37, 156);
/* oklch */ color: oklch(39.3% 0.178 289.8);
Tailwind
colors: {
  custom: {
    50: '#8564ba',
    500: '#4a259c',
    950: '#000000',
  },
}
SCSS
$custom: #4a259c;
$custom-light: #8564ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4a259c",
  "rgb": {
    "r": 74,
    "g": 37,
    "b": 156
  },
  "hsl": {
    "h": 258.655,
    "s": 61.658,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39316,
    "c": 0.1782,
    "h": 289.8
  },
  "luminance": 0.05179
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4A259C

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

Preview Lab → · Contrast checker → · Palette generator →

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