#4A1885#4A1885

#4A1885 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.166 H 298.0°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#4A1885
RGBrgb(74, 24, 133)
HSLhsl(268, 69%, 31%)
HSVhsv(268, 82%, 52%)
CMYKcmyk(44.4%, 82%, 0%, 47.8%)
CIE-LABlab(23.01, 45.21, -51.04)
CIE-LCHlch(23.01, 68.18, 311.53°)
OKLaboklab(35.7% 0.0777 -0.1461)
OKLCHoklch(35.7% 0.166 298)
XYZxyz(7.3832, 3.8024, 22.5307)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1885 #538518
analogous
#181C85 #4A1885 #801885
triadic
#4A1885 #854A18 #18854A
tetradic
#4A1885 #85181C #538518 #188580
square
#4A1885 #85181C #538518 #188580
split-complementary
#4A1885 #858018 #1C8518
monochromatic
#10051D #2D0F51 #4A1885 #6721B9 #853CDC

Accessibility & contrast

On white

11.93
#4A1885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4A1885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1885
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1885#FFFFFF#000000##FFFFFF
##4A18851.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#003683
Tritanopia (blue-blind)
#3B374F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4a1885;
/* rgb */ color: rgb(74, 24, 133);
/* oklch */ color: oklch(35.7% 0.166 298.0);
Tailwind
colors: {
  custom: {
    50: '#835ca9',
    500: '#4a1885',
    950: '#000000',
  },
}
SCSS
$custom: #4a1885;
$custom-light: #835ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1885",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 267.523,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35696,
    "c": 0.1655,
    "h": 298
  },
  "luminance": 0.03803
}

Semantic roles & 50–950 ramp

primary
#4A1885
secondary
#81B940
accent
#EC3C9B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #4A1885

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

Preview Lab → · Contrast checker → · Palette generator →

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