#4A2897#4A2897

#4A2897 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.169 H 290.4°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#4A2897
RGBrgb(74, 40, 151)
HSLhsl(258, 58%, 37%)
HSVhsv(258, 74%, 59%)
CMYKcmyk(51%, 73.5%, 0%, 40.8%)
CIE-LABlab(27.32, 42.58, -55.16)
CIE-LCHlch(27.32, 69.68, 307.67°)
OKLaboklab(39.23% 0.059 -0.1583)
OKLCHoklch(39.23% 0.169 290.4)
XYZxyz(9.1671, 5.2074, 29.7943)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2897 #759728
analogous
#283E97 #4A2897 #812897
triadic
#4A2897 #974A28 #28974A
tetradic
#4A2897 #97283E #759728 #289781
square
#4A2897 #97283E #759728 #289781
split-complementary
#4A2897 #978128 #3E9728
monochromatic
#1B0E36 #321B67 #4A2897 #6235C7 #8764D6

Accessibility & contrast

On white

10.29
#4A2897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4A2897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2897
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2897#FFFFFF#000000##FFFFFF
##4A28971.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#30455D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4a2897;
/* rgb */ color: rgb(74, 40, 151);
/* oklch */ color: oklch(39.2% 0.169 290.4);
Tailwind
colors: {
  custom: {
    50: '#8465b7',
    500: '#4a2897',
    950: '#000000',
  },
}
SCSS
$custom: #4a2897;
$custom-light: #8465b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2897",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 258.378,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39231,
    "c": 0.16898,
    "h": 290.4
  },
  "luminance": 0.05208
}

Semantic roles & 50–950 ramp

primary
#4A2897
secondary
#9FBC5F
accent
#E146B2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4A2897

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

Preview Lab → · Contrast checker → · Palette generator →

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