#4A258A#4A258A

#4A258A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.157 H 294.3°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#4A258A
RGBrgb(74, 37, 138)
HSLhsl(262, 58%, 34%)
HSVhsv(262, 73%, 54%)
CMYKcmyk(46.4%, 73.2%, 0%, 45.9%)
CIE-LABlab(25.60, 40.45, -49.92)
CIE-LCHlch(25.60, 64.25, 309.01°)
OKLaboklab(37.66% 0.0647 -0.143)
OKLCHoklch(37.66% 0.157 294.3)
XYZxyz(8.0718, 4.6137, 24.5051)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A258A #658A25
analogous
#25338A #4A258A #7D258A
triadic
#4A258A #8A4A25 #258A4A
tetradic
#4A258A #8A2533 #658A25 #258A7D
square
#4A258A #8A2533 #658A25 #258A7D
split-complementary
#4A258A #8A7D25 #338A25
monochromatic
#160B29 #30185A #4A258A #6432BA #8457D2

Accessibility & contrast

On white

10.92
#4A258A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4A258A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A258A
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A258A#FFFFFF#000000##FFFFFF
##4A258A1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#383F55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4a258a;
/* rgb */ color: rgb(74, 37, 138);
/* oklch */ color: oklch(37.7% 0.157 294.3);
Tailwind
colors: {
  custom: {
    50: '#8363ad',
    500: '#4a258a',
    950: '#000000',
  },
}
SCSS
$custom: #4a258a;
$custom-light: #8363ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4a258a",
  "rgb": {
    "r": 74,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 261.98,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3766,
    "c": 0.15691,
    "h": 294.3
  },
  "luminance": 0.04614
}

Semantic roles & 50–950 ramp

primary
#4A258A
secondary
#93B754
accent
#E147A8
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4A258A

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

Preview Lab → · Contrast checker → · Palette generator →

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