#4C239F#4C239F

#4C239F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.184 H 290.4°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#4C239F
RGBrgb(76, 35, 159)
HSLhsl(260, 64%, 38%)
HSVhsv(260, 78%, 62%)
CMYKcmyk(52.2%, 78%, 0%, 37.6%)
CIE-LABlab(27.41, 47.64, -59.88)
CIE-LCHlch(27.41, 76.52, 308.50°)
OKLaboklab(39.58% 0.0641 -0.1721)
OKLCHoklch(39.58% 0.184 290.4)
XYZxyz(9.8377, 5.2413, 33.2875)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C239F #769F23
analogous
#23389F #4C239F #8A239F
triadic
#4C239F #9F4C23 #239F4C
tetradic
#4C239F #9F2338 #769F23 #239F8A
square
#4C239F #9F2338 #769F23 #239F8A
split-complementary
#4C239F #9F8A23 #389F23
monochromatic
#1C0D3B #34186D #4C239F #642ED1 #8960DC

Accessibility & contrast

On white

10.25
#4C239F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4C239F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C239F
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C239F#FFFFFF#000000##FFFFFF
##4C239F1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003E9D
Tritanopia (blue-blind)
#2E4660
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c239f;
/* rgb */ color: rgb(76, 35, 159);
/* oklch */ color: oklch(39.6% 0.184 290.4);
Tailwind
colors: {
  custom: {
    50: '#8763bc',
    500: '#4c239f',
    950: '#000000',
  },
}
SCSS
$custom: #4c239f;
$custom-light: #8763bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c239f",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 159
  },
  "hsl": {
    "h": 259.839,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39576,
    "c": 0.18365,
    "h": 290.4
  },
  "luminance": 0.05242
}

Semantic roles & 50–950 ramp

primary
#4C239F
secondary
#A0C15D
accent
#E741B0
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4C239F

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

Preview Lab → · Contrast checker → · Palette generator →

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