#4A28A2#4A28A2

#4A28A2 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.182 H 288.0°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#4A28A2
RGBrgb(74, 40, 162)
HSLhsl(257, 60%, 40%)
HSVhsv(257, 75%, 64%)
CMYKcmyk(54.3%, 75.3%, 0%, 36.5%)
CIE-LABlab(28.33, 45.76, -60.20)
CIE-LCHlch(28.33, 75.62, 307.24°)
OKLaboklab(40.26% 0.0563 -0.1731)
OKLCHoklch(40.26% 0.182 288)
XYZxyz(10.1025, 5.5816, 34.7204)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A28A2 #80A228
analogous
#2843A2 #4A28A2 #8728A2
triadic
#4A28A2 #A24A28 #28A24A
tetradic
#4A28A2 #A22843 #80A228 #28A287
square
#4A28A2 #A22843 #80A228 #28A287
split-complementary
#4A28A2 #A28728 #43A228
monochromatic
#1D1040 #341C71 #4A28A2 #6339CE #896ADA

Accessibility & contrast

On white

9.92
#4A28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4A28A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A28A2
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A28A2#FFFFFF#000000##FFFFFF
##4A28A21.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A6
Deuteranopia (green-blind)
#0040A0
Tritanopia (blue-blind)
#264A63
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4a28a2;
/* rgb */ color: rgb(74, 40, 162);
/* oklch */ color: oklch(40.3% 0.182 288.0);
Tailwind
colors: {
  custom: {
    50: '#8666bf',
    500: '#4a28a2',
    950: '#000000',
  },
}
SCSS
$custom: #4a28a2;
$custom-light: #8666bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4a28a2",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 256.721,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40257,
    "c": 0.18207,
    "h": 288
  },
  "luminance": 0.05582
}

Semantic roles & 50–950 ramp

primary
#4A28A2
secondary
#A7C165
accent
#E444B7
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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