#4A2898#4A2898

#4A2898 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.170 H 290.2°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#4A2898
RGBrgb(74, 40, 152)
HSLhsl(258, 58%, 38%)
HSVhsv(258, 74%, 60%)
CMYKcmyk(51.3%, 73.7%, 0%, 40.4%)
CIE-LABlab(27.41, 42.87, -55.62)
CIE-LCHlch(27.41, 70.23, 307.62°)
OKLaboklab(39.32% 0.0588 -0.1597)
OKLCHoklch(39.32% 0.17 290.2)
XYZxyz(9.2487, 5.2400, 30.2238)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2898 #769828
analogous
#283E98 #4A2898 #822898
triadic
#4A2898 #984A28 #28984A
tetradic
#4A2898 #98283E #769828 #289882
square
#4A2898 #98283E #769828 #289882
split-complementary
#4A2898 #988228 #3E9828
monochromatic
#1B0F37 #321B68 #4A2898 #6235C8 #8764D6

Accessibility & contrast

On white

10.25
#4A2898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4A2898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2898
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2898#FFFFFF#000000##FFFFFF
##4A28981.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#003E96
Tritanopia (blue-blind)
#2F465D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4a2898;
/* rgb */ color: rgb(74, 40, 152);
/* oklch */ color: oklch(39.3% 0.170 290.2);
Tailwind
colors: {
  custom: {
    50: '#8565b7',
    500: '#4a2898',
    950: '#000000',
  },
}
SCSS
$custom: #4a2898;
$custom-light: #8565b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2898",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 258.214,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39323,
    "c": 0.17017,
    "h": 290.2
  },
  "luminance": 0.0524
}

Semantic roles & 50–950 ramp

primary
#4A2898
secondary
#A0BC60
accent
#E246B2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4A2898

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

Preview Lab → · Contrast checker → · Palette generator →

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