#4A2287#4A2287

#4A2287 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.157 H 295.8°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#4A2287
RGBrgb(74, 34, 135)
HSLhsl(264, 60%, 33%)
HSVhsv(264, 75%, 53%)
CMYKcmyk(45.2%, 74.8%, 0%, 47.1%)
CIE-LABlab(24.79, 41.15, -49.37)
CIE-LCHlch(24.79, 64.28, 309.81°)
OKLaboklab(37% 0.0683 -0.1413)
OKLCHoklch(37% 0.157 295.8)
XYZxyz(7.7681, 4.3490, 23.3471)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2287 #5F8722
analogous
#222D87 #4A2287 #7C2287
triadic
#4A2287 #874A22 #22874A
tetradic
#4A2287 #87222D #5F8722 #22877C
square
#4A2287 #87222D #5F8722 #22877C
split-complementary
#4A2287 #877C22 #2D8722
monochromatic
#140925 #2F1656 #4A2287 #652EB8 #8450D3

Accessibility & contrast

On white

11.23
#4A2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4A2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2287
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2287#FFFFFF#000000##FFFFFF
##4A22871.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a2287;
/* rgb */ color: rgb(74, 34, 135);
/* oklch */ color: oklch(37.0% 0.157 295.8);
Tailwind
colors: {
  custom: {
    50: '#8361ab',
    500: '#4a2287',
    950: '#000000',
  },
}
SCSS
$custom: #4a2287;
$custom-light: #8361ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2287",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 263.762,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37004,
    "c": 0.15696,
    "h": 295.8
  },
  "luminance": 0.04349
}

Semantic roles & 50–950 ramp

primary
#4A2287
secondary
#8DB74E
accent
#E345A4
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A2287

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

Preview Lab → · Contrast checker → · Palette generator →

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