#4A2B87#4A2B87

#4A2B87 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.145 H 293.9°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#4A2B87
RGBrgb(74, 43, 135)
HSLhsl(260, 52%, 35%)
HSVhsv(260, 68%, 53%)
CMYKcmyk(45.2%, 68.1%, 0%, 47.1%)
CIE-LABlab(26.54, 36.30, -46.53)
CIE-LCHlch(26.54, 59.01, 307.96°)
OKLaboklab(38.25% 0.0589 -0.133)
OKLCHoklch(38.25% 0.145 293.9)
XYZxyz(8.0599, 4.9326, 23.4444)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2B87 #68872B
analogous
#2B3A87 #4A2B87 #782B87
triadic
#4A2B87 #874A2B #2B874A
tetradic
#4A2B87 #872B3A #68872B #2B8778
square
#4A2B87 #872B3A #68872B #2B8778
split-complementary
#4A2B87 #87782B #3A872B
monochromatic
#170D2A #311C59 #4A2B87 #633AB5 #8560CC

Accessibility & contrast

On white

10.57
#4A2B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4A2B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2B87
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2B87#FFFFFF#000000##FFFFFF
##4A2B871.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#394155
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4a2b87;
/* rgb */ color: rgb(74, 43, 135);
/* oklch */ color: oklch(38.3% 0.145 293.9);
Tailwind
colors: {
  custom: {
    50: '#8266ab',
    500: '#4a2b87',
    950: '#000000',
  },
}
SCSS
$custom: #4a2b87;
$custom-light: #8266ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2b87",
  "rgb": {
    "r": 74,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 260.217,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38252,
    "c": 0.14545,
    "h": 293.9
  },
  "luminance": 0.04933
}

Semantic roles & 50–950 ramp

primary
#4A2B87
secondary
#95B25B
accent
#DB4DAB
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4A2B87

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

Preview Lab → · Contrast checker → · Palette generator →

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