#4A257E#4A257E

#4A257E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.6% C 0.142 H 298.0°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#4A257E
RGBrgb(74, 37, 126)
HSLhsl(265, 55%, 32%)
HSVhsv(265, 71%, 49%)
CMYKcmyk(41.3%, 70.6%, 0%, 50.6%)
CIE-LABlab(24.59, 37.09, -44.04)
CIE-LCHlch(24.59, 57.58, 310.10°)
OKLaboklab(36.62% 0.0669 -0.1257)
OKLCHoklch(36.62% 0.142 298)
XYZxyz(7.2505, 4.2852, 20.1798)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A257E #597E25
analogous
#252D7E #4A257E #77257E
triadic
#4A257E #7E4A25 #257E4A
tetradic
#4A257E #7E252D #597E25 #257E77
square
#4A257E #7E252D #597E25 #257E77
split-complementary
#4A257E #7E7725 #2D7E25
monochromatic
#12091F #2E174F #4A257E #6633AD #8451CC

Accessibility & contrast

On white

11.31
#4A257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4A257E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A257E
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A257E#FFFFFF#000000##FFFFFF
##4A257E1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#3D3A4E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4a257e;
/* rgb */ color: rgb(74, 37, 126);
/* oklch */ color: oklch(36.6% 0.142 298.0);
Tailwind
colors: {
  custom: {
    50: '#8162a4',
    500: '#4a257e',
    950: '#000000',
  },
}
SCSS
$custom: #4a257e;
$custom-light: #8162a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a257e",
  "rgb": {
    "r": 74,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 264.944,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36624,
    "c": 0.14239,
    "h": 298
  },
  "luminance": 0.04285
}

Semantic roles & 50–950 ramp

primary
#4A257E
secondary
#88B04F
accent
#DE4AA0
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4A257E

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

Preview Lab → · Contrast checker → · Palette generator →

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