#4C238F#4C238F

#4C238F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.165 H 294.5°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#4C238F
RGBrgb(76, 35, 143)
HSLhsl(263, 61%, 35%)
HSVhsv(263, 76%, 56%)
CMYKcmyk(46.9%, 75.5%, 0%, 43.9%)
CIE-LABlab(25.93, 43.21, -52.49)
CIE-LCHlch(25.93, 67.99, 309.46°)
OKLaboklab(38.08% 0.0685 -0.1504)
OKLCHoklch(38.08% 0.165 294.5)
XYZxyz(8.5381, 4.7215, 26.4428)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C238F #668F23
analogous
#23308F #4C238F #82238F
triadic
#4C238F #8F4C23 #238F4C
tetradic
#4C238F #8F2330 #668F23 #238F82
square
#4C238F #8F2330 #668F23 #238F82
split-complementary
#4C238F #8F8223 #308F23
monochromatic
#180B2D #32175E #4C238F #662FC0 #8757D6

Accessibility & contrast

On white

10.80
#4C238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4C238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C238F
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C238F#FFFFFF#000000##FFFFFF
##4C238F1.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#394057
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c238f;
/* rgb */ color: rgb(76, 35, 143);
/* oklch */ color: oklch(38.1% 0.165 294.5);
Tailwind
colors: {
  custom: {
    50: '#8562b1',
    500: '#4c238f',
    950: '#000000',
  },
}
SCSS
$custom: #4c238f;
$custom-light: #8562b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c238f",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 262.778,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38079,
    "c": 0.1653,
    "h": 294.5
  },
  "luminance": 0.04722
}

Semantic roles & 50–950 ramp

primary
#4C238F
secondary
#93BA54
accent
#E444A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4C238F

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

Preview Lab → · Contrast checker → · Palette generator →

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