#4A239B#4A239B

#4A239B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.179 H 290.3°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#4A239B
RGBrgb(74, 35, 155)
HSLhsl(260, 63%, 37%)
HSVhsv(260, 77%, 61%)
CMYKcmyk(52.3%, 77.4%, 0%, 39.2%)
CIE-LABlab(26.80, 46.23, -58.45)
CIE-LCHlch(26.80, 74.52, 308.34°)
OKLaboklab(38.98% 0.0622 -0.168)
OKLCHoklch(38.98% 0.179 290.3)
XYZxyz(9.3398, 5.0241, 31.4816)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A239B #749B23
analogous
#23389B #4A239B #86239B
triadic
#4A239B #9B4A23 #239B4A
tetradic
#4A239B #9B2338 #749B23 #239B86
square
#4A239B #9B2338 #749B23 #239B86
split-complementary
#4A239B #9B8623 #389B23
monochromatic
#1A0C37 #321869 #4A239B #622ECD #865EDB

Accessibility & contrast

On white

10.47
#4A239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4A239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A239B
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A239B#FFFFFF#000000##FFFFFF
##4A239B1.0010.472.0010.47
#FFFFFF10.471.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419E
Deuteranopia (green-blind)
#003D99
Tritanopia (blue-blind)
#2D455E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4a239b;
/* rgb */ color: rgb(74, 35, 155);
/* oklch */ color: oklch(39.0% 0.179 290.3);
Tailwind
colors: {
  custom: {
    50: '#8563ba',
    500: '#4a239b',
    950: '#000000',
  },
}
SCSS
$custom: #4a239b;
$custom-light: #8563ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4a239b",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 259.5,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38982,
    "c": 0.1791,
    "h": 290.3
  },
  "luminance": 0.05024
}

Semantic roles & 50–950 ramp

primary
#4A239B
secondary
#9FBF5A
accent
#E642B1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4A239B

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

Preview Lab → · Contrast checker → · Palette generator →

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