#4A1875#4A1875

#4A1875 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.148 H 303.7°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#4A1875
RGBrgb(74, 24, 117)
HSLhsl(272, 66%, 28%)
HSVhsv(272, 79%, 46%)
CMYKcmyk(36.8%, 79.5%, 0%, 54.1%)
CIE-LABlab(21.56, 41.12, -43.25)
CIE-LCHlch(21.56, 59.68, 313.55°)
OKLaboklab(34.23% 0.0823 -0.1233)
OKLCHoklch(34.23% 0.148 303.7)
XYZxyz(6.3608, 3.3935, 17.1461)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1875 #437518
analogous
#1C1875 #4A1875 #751871
triadic
#4A1875 #754A18 #18754A
tetradic
#4A1875 #751C18 #437518 #187175
square
#4A1875 #751C18 #437518 #187175
split-complementary
#4A1875 #717518 #18751C
monochromatic
#100519 #2A0E42 #4A1875 #6A22A8 #8A32D5

Accessibility & contrast

On white

12.51
#4A1875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4A1875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1875
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1875#FFFFFF#000000##FFFFFF
##4A18751.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003378
Deuteranopia (green-blind)
#003473
Tritanopia (blue-blind)
#413046
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a1875;
/* rgb */ color: rgb(74, 24, 117);
/* oklch */ color: oklch(34.2% 0.148 303.7);
Tailwind
colors: {
  custom: {
    50: '#815b9d',
    500: '#4a1875',
    950: '#000000',
  },
}
SCSS
$custom: #4a1875;
$custom-light: #815b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1875",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 272.258,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34234,
    "c": 0.14825,
    "h": 303.7
  },
  "luminance": 0.03393
}

Semantic roles & 50–950 ramp

primary
#4A1875
secondary
#70AA3F
accent
#E93F8E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1875

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

Preview Lab → · Contrast checker → · Palette generator →

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