#4A2087#4A2087

#4A2087 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.159 H 296.1°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#4A2087
RGBrgb(74, 32, 135)
HSLhsl(264, 62%, 33%)
HSVhsv(264, 76%, 53%)
CMYKcmyk(45.2%, 76.3%, 0%, 47.1%)
CIE-LABlab(24.44, 42.14, -49.95)
CIE-LCHlch(24.44, 65.35, 310.16°)
OKLaboklab(36.76% 0.0702 -0.143)
OKLCHoklch(36.76% 0.159 296.1)
XYZxyz(7.7126, 4.2380, 23.3286)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2087 #5D8720
analogous
#202987 #4A2087 #7D2087
triadic
#4A2087 #874A20 #20874A
tetradic
#4A2087 #872029 #5D8720 #20877D
square
#4A2087 #872029 #5D8720 #20877D
split-complementary
#4A2087 #877D20 #298720
monochromatic
#140924 #2F1456 #4A2087 #652CB8 #844DD5

Accessibility & contrast

On white

11.37
#4A2087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4A2087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2087
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2087#FFFFFF#000000##FFFFFF
##4A20871.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#393B52
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4a2087;
/* rgb */ color: rgb(74, 32, 135);
/* oklch */ color: oklch(36.8% 0.159 296.1);
Tailwind
colors: {
  custom: {
    50: '#8360ab',
    500: '#4a2087',
    950: '#000000',
  },
}
SCSS
$custom: #4a2087;
$custom-light: #8360ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2087",
  "rgb": {
    "r": 74,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 264.466,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36757,
    "c": 0.1593,
    "h": 296.1
  },
  "luminance": 0.04238
}

Semantic roles & 50–950 ramp

primary
#4A2087
secondary
#8BB84B
accent
#E543A3
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A2087

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

Preview Lab → · Contrast checker → · Palette generator →

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