#4A2487#4A2487

#4A2487 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.155 H 295.4°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#4A2487
RGBrgb(74, 36, 135)
HSLhsl(263, 58%, 34%)
HSVhsv(263, 73%, 53%)
CMYKcmyk(45.2%, 73.3%, 0%, 47.1%)
CIE-LABlab(25.16, 40.13, -48.78)
CIE-LCHlch(25.16, 63.16, 309.44°)
OKLaboklab(37.26% 0.0663 -0.1396)
OKLCHoklch(37.26% 0.155 295.4)
XYZxyz(7.8269, 4.4667, 23.3667)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2487 #618724
analogous
#242F87 #4A2487 #7B2487
triadic
#4A2487 #874A24 #24874A
tetradic
#4A2487 #87242F #618724 #24877B
square
#4A2487 #87242F #618724 #24877B
split-complementary
#4A2487 #877B24 #2F8724
monochromatic
#150A26 #301757 #4A2487 #6431B7 #8454D1

Accessibility & contrast

On white

11.09
#4A2487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4A2487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2487
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2487#FFFFFF#000000##FFFFFF
##4A24871.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#393D53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4a2487;
/* rgb */ color: rgb(74, 36, 135);
/* oklch */ color: oklch(37.3% 0.155 295.4);
Tailwind
colors: {
  custom: {
    50: '#8362ab',
    500: '#4a2487',
    950: '#000000',
  },
}
SCSS
$custom: #4a2487;
$custom-light: #8362ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2487",
  "rgb": {
    "r": 74,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 263.03,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37262,
    "c": 0.15455,
    "h": 295.4
  },
  "luminance": 0.04467
}

Semantic roles & 50–950 ramp

primary
#4A2487
secondary
#8FB551
accent
#E147A6
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4A2487

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

Preview Lab → · Contrast checker → · Palette generator →

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