#4C238B#4C238B

#4C238B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.161 H 295.6°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#4C238B
RGBrgb(76, 35, 139)
HSLhsl(264, 60%, 34%)
HSVhsv(264, 75%, 55%)
CMYKcmyk(45.3%, 74.8%, 0%, 45.5%)
CIE-LABlab(25.57, 42.11, -50.59)
CIE-LCHlch(25.57, 65.83, 309.77°)
OKLaboklab(37.72% 0.0695 -0.1448)
OKLCHoklch(37.72% 0.161 295.6)
XYZxyz(8.2405, 4.6024, 24.8753)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C238B #628B23
analogous
#232E8B #4C238B #80238B
triadic
#4C238B #8B4C23 #238B4C
tetradic
#4C238B #8B232E #628B23 #238B80
square
#4C238B #8B232E #628B23 #238B80
split-complementary
#4C238B #8B8023 #2E8B23
monochromatic
#170A29 #31175A #4C238B #672FBC #8754D4

Accessibility & contrast

On white

10.93
#4C238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4C238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C238B
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C238B#FFFFFF#000000##FFFFFF
##4C238B1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#3B3E55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c238b;
/* rgb */ color: rgb(76, 35, 139);
/* oklch */ color: oklch(37.7% 0.161 295.6);
Tailwind
colors: {
  custom: {
    50: '#8462ae',
    500: '#4c238b',
    950: '#000000',
  },
}
SCSS
$custom: #4c238b;
$custom-light: #8462ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c238b",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 263.654,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37719,
    "c": 0.16064,
    "h": 295.6
  },
  "luminance": 0.04603
}

Semantic roles & 50–950 ramp

primary
#4C238B
secondary
#90B852
accent
#E345A5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4C238B

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

Preview Lab → · Contrast checker → · Palette generator →

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