#4A25A2#4A25A2

#4A25A2 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.185 H 288.5°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#4A25A2
RGBrgb(74, 37, 162)
HSLhsl(258, 63%, 39%)
HSVhsv(258, 77%, 64%)
CMYKcmyk(54.3%, 77.2%, 0%, 36.5%)
CIE-LABlab(27.81, 47.25, -61.06)
CIE-LCHlch(27.81, 77.21, 307.73°)
OKLaboklab(39.89% 0.0587 -0.1756)
OKLCHoklch(39.89% 0.185 288.5)
XYZxyz(10.0053, 5.3871, 34.6880)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A25A2 #7DA225
analogous
#253FA2 #4A25A2 #8925A2
triadic
#4A25A2 #A24A25 #25A24A
tetradic
#4A25A2 #A2253F #7DA225 #25A289
square
#4A25A2 #A2253F #7DA225 #25A289
split-complementary
#4A25A2 #A28925 #3FA225
monochromatic
#1C0E3E #331A70 #4A25A2 #6234D1 #8965DC

Accessibility & contrast

On white

10.11
#4A25A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4A25A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A25A2
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A25A2#FFFFFF#000000##FFFFFF
##4A25A21.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#003EA0
Tritanopia (blue-blind)
#274862
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4a25a2;
/* rgb */ color: rgb(74, 37, 162);
/* oklch */ color: oklch(39.9% 0.185 288.5);
Tailwind
colors: {
  custom: {
    50: '#8664bf',
    500: '#4a25a2',
    950: '#000000',
  },
}
SCSS
$custom: #4a25a2;
$custom-light: #8664bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4a25a2",
  "rgb": {
    "r": 74,
    "g": 37,
    "b": 162
  },
  "hsl": {
    "h": 257.76,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39891,
    "c": 0.18516,
    "h": 288.5
  },
  "luminance": 0.05388
}

Semantic roles & 50–950 ramp

primary
#4A25A2
secondary
#A5C261
accent
#E642B5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A25A2

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

Preview Lab → · Contrast checker → · Palette generator →

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