#4A238C#4A238C

#4A238C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.162 H 294.2°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#4A238C
RGBrgb(74, 35, 140)
HSLhsl(262, 60%, 34%)
HSVhsv(262, 75%, 55%)
CMYKcmyk(47.1%, 75%, 0%, 45.1%)
CIE-LABlab(25.42, 42.04, -51.48)
CIE-LCHlch(25.42, 66.46, 309.23°)
OKLaboklab(37.58% 0.0662 -0.1475)
OKLCHoklch(37.58% 0.162 294.2)
XYZxyz(8.1574, 4.5511, 25.2545)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A238C #658C23
analogous
#23308C #4A238C #7F238C
triadic
#4A238C #8C4A23 #238C4A
tetradic
#4A238C #8C2330 #658C23 #238C7F
square
#4A238C #8C2330 #658C23 #238C7F
split-complementary
#4A238C #8C7F23 #308C23
monochromatic
#160B2A #30175B #4A238C #642FBD #8455D4

Accessibility & contrast

On white

10.99
#4A238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4A238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A238C
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A238C#FFFFFF#000000##FFFFFF
##4A238C1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#373F55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4a238c;
/* rgb */ color: rgb(74, 35, 140);
/* oklch */ color: oklch(37.6% 0.162 294.2);
Tailwind
colors: {
  custom: {
    50: '#8362af',
    500: '#4a238c',
    950: '#000000',
  },
}
SCSS
$custom: #4a238c;
$custom-light: #8362af;
$custom-dark: #000000;
JSON
{
  "hex": "#4a238c",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 262.286,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37581,
    "c": 0.16166,
    "h": 294.2
  },
  "luminance": 0.04551
}

Semantic roles & 50–950 ramp

primary
#4A238C
secondary
#93B852
accent
#E345A8
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A238C

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

Preview Lab → · Contrast checker → · Palette generator →

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