#4C198F#4C198F

#4C198F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.175 H 295.9°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#4C198F
RGBrgb(76, 25, 143)
HSLhsl(266, 70%, 33%)
HSVhsv(266, 83%, 56%)
CMYKcmyk(46.9%, 82.5%, 0%, 43.9%)
CIE-LABlab(24.37, 47.69, -55.05)
CIE-LCHlch(24.37, 72.83, 310.90°)
OKLaboklab(36.99% 0.0768 -0.1578)
OKLCHoklch(36.99% 0.176 295.9)
XYZxyz(8.2847, 4.2147, 26.3583)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C198F #5C8F19
analogous
#19218F #4C198F #87198F
triadic
#4C198F #8F4C19 #198F4C
tetradic
#4C198F #8F1921 #5C8F19 #198F87
square
#4C198F #8F1921 #5C8F19 #198F87
split-complementary
#4C198F #8F8719 #218F19
monochromatic
#150727 #30105B #4C198F #6822C3 #8744DE

Accessibility & contrast

On white

11.39
#4C198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4C198F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C198F
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C198F#FFFFFF#000000##FFFFFF
##4C198F1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#393B55
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c198f;
/* rgb */ color: rgb(76, 25, 143);
/* oklch */ color: oklch(37.0% 0.175 295.9);
Tailwind
colors: {
  custom: {
    50: '#865db1',
    500: '#4c198f',
    950: '#000000',
  },
}
SCSS
$custom: #4c198f;
$custom-light: #865db1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c198f",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 265.932,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36991,
    "c": 0.1755,
    "h": 295.9
  },
  "luminance": 0.04215
}

Semantic roles & 50–950 ramp

primary
#4C198F
secondary
#8ABF44
accent
#ED3BA0
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C198F

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

Preview Lab → · Contrast checker → · Palette generator →

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