#4A239C#4A239C

#4A239C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.180 H 290.1°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#4A239C
RGBrgb(74, 35, 156)
HSLhsl(259, 63%, 37%)
HSVhsv(259, 78%, 61%)
CMYKcmyk(52.6%, 77.6%, 0%, 38.8%)
CIE-LABlab(26.90, 46.51, -58.91)
CIE-LCHlch(26.90, 75.06, 308.30°)
OKLaboklab(39.08% 0.0619 -0.1693)
OKLCHoklch(39.08% 0.18 290.1)
XYZxyz(9.4241, 5.0578, 31.9257)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A239C #759C23
analogous
#23389C #4A239C #87239C
triadic
#4A239C #9C4A23 #239C4A
tetradic
#4A239C #9C2338 #759C23 #239C87
square
#4A239C #9C2338 #759C23 #239C87
split-complementary
#4A239C #9C8723 #389C23
monochromatic
#1B0D38 #32186A #4A239C #622ECE #875EDB

Accessibility & contrast

On white

10.44
#4A239C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4A239C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A239C
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A239C#FFFFFF#000000##FFFFFF
##4A239C1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003D9A
Tritanopia (blue-blind)
#2C455E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4a239c;
/* rgb */ color: rgb(74, 35, 156);
/* oklch */ color: oklch(39.1% 0.180 290.1);
Tailwind
colors: {
  custom: {
    50: '#8663ba',
    500: '#4a239c',
    950: '#000000',
  },
}
SCSS
$custom: #4a239c;
$custom-light: #8663ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4a239c",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 156
  },
  "hsl": {
    "h": 259.339,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39078,
    "c": 0.18026,
    "h": 290.1
  },
  "luminance": 0.05058
}

Semantic roles & 50–950 ramp

primary
#4A239C
secondary
#9FC05B
accent
#E641B1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4A239C

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

Preview Lab → · Contrast checker → · Palette generator →

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