#4A1775#4A1775

#4A1775 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.149 H 303.9°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#4A1775
RGBrgb(74, 23, 117)
HSLhsl(273, 67%, 27%)
HSVhsv(273, 80%, 46%)
CMYKcmyk(36.8%, 80.3%, 0%, 54.1%)
CIE-LABlab(21.41, 41.55, -43.50)
CIE-LCHlch(21.41, 60.15, 313.69°)
OKLaboklab(34.13% 0.0833 -0.124)
OKLCHoklch(34.13% 0.149 303.9)
XYZxyz(6.3406, 3.3530, 17.1393)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1775 #427517
analogous
#1B1775 #4A1775 #751771
triadic
#4A1775 #754A17 #17754A
tetradic
#4A1775 #751B17 #427517 #177175
square
#4A1775 #751B17 #427517 #177175
split-complementary
#4A1775 #717517 #17751B
monochromatic
#10051A #2A0D42 #4A1775 #6A21A8 #8A30D6

Accessibility & contrast

On white

12.57
#4A1775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4A1775 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1775
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1775#FFFFFF#000000##FFFFFF
##4A17751.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003278
Deuteranopia (green-blind)
#003373
Tritanopia (blue-blind)
#412F45
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4a1775;
/* rgb */ color: rgb(74, 23, 117);
/* oklch */ color: oklch(34.1% 0.149 303.9);
Tailwind
colors: {
  custom: {
    50: '#815a9e',
    500: '#4a1775',
    950: '#000000',
  },
}
SCSS
$custom: #4a1775;
$custom-light: #815a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1775",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 117
  },
  "hsl": {
    "h": 272.553,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34129,
    "c": 0.14936,
    "h": 303.9
  },
  "luminance": 0.03353
}

Semantic roles & 50–950 ramp

primary
#4A1775
secondary
#6FAA3D
accent
#EA3E8D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1775

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

Preview Lab → · Contrast checker → · Palette generator →

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