#4A258D#4A258D

#4A258D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.161 H 293.5°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#4A258D
RGBrgb(74, 37, 141)
HSLhsl(261, 58%, 35%)
HSVhsv(261, 74%, 55%)
CMYKcmyk(47.5%, 73.8%, 0%, 44.7%)
CIE-LABlab(25.87, 41.29, -51.36)
CIE-LCHlch(25.87, 65.90, 308.80°)
OKLaboklab(37.93% 0.064 -0.1472)
OKLCHoklch(37.93% 0.161 293.5)
XYZxyz(8.2920, 4.7018, 25.6648)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A258D #688D25
analogous
#25348D #4A258D #7E258D
triadic
#4A258D #8D4A25 #258D4A
tetradic
#4A258D #8D2534 #688D25 #258D7E
square
#4A258D #8D2534 #688D25 #258D7E
split-complementary
#4A258D #8D7E25 #348D25
monochromatic
#170C2C #31185D #4A258D #6332BD #8559D3

Accessibility & contrast

On white

10.82
#4A258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4A258D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A258D
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A258D#FFFFFF#000000##FFFFFF
##4A258D1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#364056
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4a258d;
/* rgb */ color: rgb(74, 37, 141);
/* oklch */ color: oklch(37.9% 0.161 293.5);
Tailwind
colors: {
  custom: {
    50: '#8363af',
    500: '#4a258d',
    950: '#000000',
  },
}
SCSS
$custom: #4a258d;
$custom-light: #8363af;
$custom-dark: #000000;
JSON
{
  "hex": "#4a258d",
  "rgb": {
    "r": 74,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 261.346,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37928,
    "c": 0.1605,
    "h": 293.5
  },
  "luminance": 0.04702
}

Semantic roles & 50–950 ramp

primary
#4A258D
secondary
#95B856
accent
#E246AA
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4A258D

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

Preview Lab → · Contrast checker → · Palette generator →

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