#4A258E#4A258E

#4A258E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.162 H 293.2°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#4A258E
RGBrgb(74, 37, 142)
HSLhsl(261, 59%, 35%)
HSVhsv(261, 74%, 56%)
CMYKcmyk(47.9%, 73.9%, 0%, 44.3%)
CIE-LABlab(25.96, 41.57, -51.83)
CIE-LCHlch(25.96, 66.45, 308.73°)
OKLaboklab(38.02% 0.0638 -0.1486)
OKLCHoklch(38.02% 0.162 293.2)
XYZxyz(8.3667, 4.7317, 26.0584)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A258E #698E25
analogous
#25348E #4A258E #7E258E
triadic
#4A258E #8E4A25 #258E4A
tetradic
#4A258E #8E2534 #698E25 #258E7E
square
#4A258E #8E2534 #698E25 #258E7E
split-complementary
#4A258E #8E7E25 #348E25
monochromatic
#170C2D #31185D #4A258E #6332BF #855AD4

Accessibility & contrast

On white

10.79
#4A258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4A258E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A258E
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A258E#FFFFFF#000000##FFFFFF
##4A258E1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#354057
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4a258e;
/* rgb */ color: rgb(74, 37, 142);
/* oklch */ color: oklch(38.0% 0.162 293.2);
Tailwind
colors: {
  custom: {
    50: '#8363b0',
    500: '#4a258e',
    950: '#000000',
  },
}
SCSS
$custom: #4a258e;
$custom-light: #8363b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a258e",
  "rgb": {
    "r": 74,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 261.143,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38019,
    "c": 0.16169,
    "h": 293.2
  },
  "luminance": 0.04732
}

Semantic roles & 50–950 ramp

primary
#4A258E
secondary
#96B956
accent
#E246AB
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #4A258E

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

Preview Lab → · Contrast checker → · Palette generator →

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