#4C338E#4C338E

#4C338E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.3% C 0.143 H 291.2°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#4C338E
RGBrgb(76, 51, 142)
HSLhsl(256, 47%, 38%)
HSVhsv(256, 64%, 56%)
CMYKcmyk(46.5%, 64.1%, 0%, 44.3%)
CIE-LABlab(29.05, 34.11, -46.79)
CIE-LCHlch(29.05, 57.90, 306.09°)
OKLaboklab(40.29% 0.052 -0.1337)
OKLCHoklch(40.29% 0.143 291.2)
XYZxyz(9.0454, 5.8568, 26.2398)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C338E #758E33
analogous
#33478E #4C338E #7A338E
triadic
#4C338E #8E4C33 #338E4C
tetradic
#4C338E #8E3347 #758E33 #338E7A
square
#4C338E #8E3347 #758E33 #338E7A
split-complementary
#4C338E #8E7A33 #478E33
monochromatic
#1C1334 #342361 #4C338E #6443BB #8970CC

Accessibility & contrast

On white

9.67
#4C338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4C338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C338E
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C338E#FFFFFF#000000##FFFFFF
##4C338E1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#38485B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4c338e;
/* rgb */ color: rgb(76, 51, 142);
/* oklch */ color: oklch(40.3% 0.143 291.2);
Tailwind
colors: {
  custom: {
    50: '#846cb0',
    500: '#4c338e',
    950: '#000000',
  },
}
SCSS
$custom: #4c338e;
$custom-light: #846cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c338e",
  "rgb": {
    "r": 76,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 256.484,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4029,
    "c": 0.14347,
    "h": 291.2
  },
  "luminance": 0.05857
}

Semantic roles & 50–950 ramp

primary
#4C338E
secondary
#9FB469
accent
#D751B2
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4C338E

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

Preview Lab → · Contrast checker → · Palette generator →

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