#4C2985#4C2985

#4C2985 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.0% C 0.146 H 296.2°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#4C2985
RGBrgb(76, 41, 133)
HSLhsl(263, 53%, 34%)
HSVhsv(263, 69%, 52%)
CMYKcmyk(42.9%, 69.2%, 0%, 47.8%)
CIE-LABlab(26.20, 37.27, -45.82)
CIE-LCHlch(26.20, 59.06, 309.13°)
OKLaboklab(38.01% 0.0644 -0.1308)
OKLCHoklch(38.01% 0.146 296.2)
XYZxyz(8.0060, 4.8157, 22.6935)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2985 #628529
analogous
#293485 #4C2985 #7A2985
triadic
#4C2985 #854C29 #29854C
tetradic
#4C2985 #852934 #628529 #29857A
square
#4C2985 #852934 #628529 #29857A
split-complementary
#4C2985 #857A29 #348529
monochromatic
#170C27 #311B56 #4C2985 #6737B4 #875CCD

Accessibility & contrast

On white

10.70
#4C2985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4C2985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2985
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2985#FFFFFF#000000##FFFFFF
##4C29851.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F88
Deuteranopia (green-blind)
#003D83
Tritanopia (blue-blind)
#3D3F53
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c2985;
/* rgb */ color: rgb(76, 41, 133);
/* oklch */ color: oklch(38.0% 0.146 296.2);
Tailwind
colors: {
  custom: {
    50: '#8365a9',
    500: '#4c2985',
    950: '#000000',
  },
}
SCSS
$custom: #4c2985;
$custom-light: #8365a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2985",
  "rgb": {
    "r": 76,
    "g": 41,
    "b": 133
  },
  "hsl": {
    "h": 262.826,
    "s": 52.874,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38011,
    "c": 0.14583,
    "h": 296.2
  },
  "luminance": 0.04816
}

Semantic roles & 50–950 ramp

primary
#4C2985
secondary
#90B258
accent
#DC4CA5
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2985

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

Preview Lab → · Contrast checker → · Palette generator →

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