#4A2D87#4A2D87

#4A2D87 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.6% C 0.143 H 293.4°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#4A2D87
RGBrgb(74, 45, 135)
HSLhsl(259, 50%, 35%)
HSVhsv(259, 67%, 53%)
CMYKcmyk(45.2%, 66.7%, 0%, 47.1%)
CIE-LABlab(26.97, 35.14, -45.84)
CIE-LCHlch(26.97, 57.76, 307.48°)
OKLaboklab(38.56% 0.0566 -0.131)
OKLCHoklch(38.56% 0.143 293.4)
XYZxyz(8.1344, 5.0817, 23.4692)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2D87 #6A872D
analogous
#2D3D87 #4A2D87 #772D87
triadic
#4A2D87 #874A2D #2D874A
tetradic
#4A2D87 #872D3D #6A872D #2D8777
square
#4A2D87 #872D3D #6A872D #2D8777
split-complementary
#4A2D87 #87772D #3D872D
monochromatic
#180E2B #311E59 #4A2D87 #633CB5 #8563CB

Accessibility & contrast

On white

10.41
#4A2D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4A2D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2D87
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2D87#FFFFFF#000000##FFFFFF
##4A2D871.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#394256
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4a2d87;
/* rgb */ color: rgb(74, 45, 135);
/* oklch */ color: oklch(38.6% 0.143 293.4);
Tailwind
colors: {
  custom: {
    50: '#8268ab',
    500: '#4a2d87',
    950: '#000000',
  },
}
SCSS
$custom: #4a2d87;
$custom-light: #8268ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2d87",
  "rgb": {
    "r": 74,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 259.333,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38558,
    "c": 0.1427,
    "h": 293.4
  },
  "luminance": 0.05082
}

Semantic roles & 50–950 ramp

primary
#4A2D87
secondary
#97B25E
accent
#DA4EAD
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4A2D87

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

Preview Lab → · Contrast checker → · Palette generator →

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