#4A187F#4A187F

#4A187F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.159 H 300.0°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#4A187F
RGBrgb(74, 24, 127)
HSLhsl(269, 68%, 30%)
HSVhsv(269, 81%, 50%)
CMYKcmyk(41.7%, 81.1%, 0%, 50.2%)
CIE-LABlab(22.45, 43.66, -48.17)
CIE-LCHlch(22.45, 65.01, 312.19°)
OKLaboklab(35.14% 0.0795 -0.1377)
OKLCHoklch(35.14% 0.159 300)
XYZxyz(6.9805, 3.6413, 20.4096)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A187F #4D7F18
analogous
#181A7F #4A187F #7E187F
triadic
#4A187F #7F4A18 #187F4A
tetradic
#4A187F #7F181A #4D7F18 #187F7E
square
#4A187F #7F181A #4D7F18 #187F7E
split-complementary
#4A187F #7F7E18 #1A7F18
monochromatic
#0F051A #2C0E4C #4A187F #6822B2 #8638D9

Accessibility & contrast

On white

12.15
#4A187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4A187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A187F
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A187F#FFFFFF#000000##FFFFFF
##4A187F1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#3D344B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4a187f;
/* rgb */ color: rgb(74, 24, 127);
/* oklch */ color: oklch(35.1% 0.159 300.0);
Tailwind
colors: {
  custom: {
    50: '#825ba5',
    500: '#4a187f',
    950: '#000000',
  },
}
SCSS
$custom: #4a187f;
$custom-light: #825ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a187f",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 269.126,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35135,
    "c": 0.15904,
    "h": 300
  },
  "luminance": 0.03641
}

Semantic roles & 50–950 ramp

primary
#4A187F
secondary
#7BB33F
accent
#EB3D96
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A187F

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

Preview Lab → · Contrast checker → · Palette generator →

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