#4C368A#4C368A

#4C368A is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.5% C 0.134 H 291.3°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#4C368A
RGBrgb(76, 54, 138)
HSLhsl(256, 44%, 38%)
HSVhsv(256, 61%, 54%)
CMYKcmyk(44.9%, 60.9%, 0%, 45.9%)
CIE-LABlab(29.44, 31.08, -43.69)
CIE-LCHlch(29.44, 53.62, 305.43°)
OKLaboklab(40.48% 0.0486 -0.1246)
OKLCHoklch(40.48% 0.134 291.3)
XYZxyz(8.8858, 6.0095, 24.7316)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C368A #748A36
analogous
#364A8A #4C368A #76368A
triadic
#4C368A #8A4C36 #368A4C
tetradic
#4C368A #8A364A #748A36 #368A76
square
#4C368A #8A364A #748A36 #368A76
split-complementary
#4C368A #8A7636 #4A8A36
monochromatic
#1C1432 #34255E #4C368A #6447B6 #8972C8

Accessibility & contrast

On white

9.54
#4C368A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4C368A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C368A
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C368A#FFFFFF#000000##FFFFFF
##4C368A1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478D
Deuteranopia (green-blind)
#014488
Tritanopia (blue-blind)
#3A495A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c368a;
/* rgb */ color: rgb(76, 54, 138);
/* oklch */ color: oklch(40.5% 0.134 291.3);
Tailwind
colors: {
  custom: {
    50: '#836ead',
    500: '#4c368a',
    950: '#000000',
  },
}
SCSS
$custom: #4c368a;
$custom-light: #836ead;
$custom-dark: #000000;
JSON
{
  "hex": "#4c368a",
  "rgb": {
    "r": 76,
    "g": 54,
    "b": 138
  },
  "hsl": {
    "h": 255.714,
    "s": 43.75,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40478,
    "c": 0.13376,
    "h": 291.3
  },
  "luminance": 0.0601
}

Semantic roles & 50–950 ramp

primary
#4C368A
secondary
#9EB16B
accent
#D354B2
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4C368A

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

Preview Lab → · Contrast checker → · Palette generator →

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